Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Display Attachement Name on Pages

Quote Reply
Display Attachement Name on Pages
I added "attached_file" column in links database, and I want to show the NAME of the attachement (means display the name of the file on the harddisk) next to the link in category.html! How do I do that?
I tried putting <%attached_file%> in category.html but did not work, I get a blank instead of the attached file name.
also, I tried creating a global for the attached file name: "attached" which is <%attached_file%> and also did not work...

It seems also, that even if I put a GLOBAL like:
display_attach ... which is: <IMG SRC="<%db_cgi_url%>/jump.cgi?view=File&ID=<%ID%>">
then it is not being replaced in the dynamically generated category page.
e.g. if I put <%display_attach%> on category.html, then I still see the following link: ...cgi-bin/mixes/<%db_cgi_url%>/jump.cgi?view=File&ID=<%ID%>

any hint or help... greatly appreciated.

Last edited by:

Mark2: Nov 15, 2005, 11:38 AM
Quote Reply
Re: [Mark2] Display Attachement Name on Pages In reply to
Hi Mark,

To show the name of the file, you should simply put <%attached_file%>. Is that field in the Links table or Category table? If it's in the Links table, it should not be availabe in the category.html template, it will be only available in link.html. Can you PM me the access information so we can take a look at it?

Virginia
Quote Reply
Re: [Virginia] Display Attachement Name on Pages In reply to
Thanks Virginia for the info.
You are right, <%attached_file%> is only visiable in link.php (since it is a column name in links DB); however, I want it to be visiable everywhere; specially, category.php; therefore, how can I pass it via via a variable or a global???
thank you...
Quote Reply
Re: [Mark2] Display Attachement Name on Pages In reply to
Since the column is from the Links DB, and it's not going to be available in the category.php, it's only available in the loop tag <%links_loop%>.

Do you want to list the <%attached_file%> of all the links on the category page?

Quote Reply
Re: [Virginia] Display Attachement Name on Pages In reply to
Yes! absolutly, I want to pass the attached_file name to other pages, specially pages built pagebuilder.
So, how can I pass the name of the attached_file to other pages in the system if this column was only defined in link.html properties?
I would love to have a global to that can be used on other pages to show the attached_file name...
thank you again for ur help...
Quote Reply
Re: [Mark2] Display Attachement Name on Pages In reply to
If you are talking about the PageBuilder Plugin, you should contact yogi / Ivan for it. I believe you can add a page with type "Link".
Quote Reply
Re: [Virginia] Display Attachement Name on Pages In reply to
Hi Virginia

Can you tell me what syntax you use with the <%links_loop%> tag in the PHP templates?

regan
Quote Reply
Re: [ryel01] Display Attachement Name on Pages In reply to
Sorry, but I'm not sure how the PHP front end relates to any of this?

Adrian
Quote Reply
Re: [brewt] Display Attachement Name on Pages In reply to
In Reply To:
Sorry, but I'm not sure how the PHP front end relates to any of this?


In Viginia's post above she says...

Code:
Since the column is from the Links DB, and it's not going to be available in the category.php, it's only available in the loop tag <%links_loop%>.

She mentions the category.php page and teh <%links_loop%> tag - that's how it relates to this thread.
Quote Reply
Re: [ryel01] Display Attachement Name on Pages In reply to
I think that's just a typo, since the PHP front end doesn't use any <%...%> style tags.

Adrian
Quote Reply
Re: [brewt] Display Attachement Name on Pages In reply to
no I realise that... 4 posts later I'll just start a new thread and ask the same question.