Gossamer Forum
Home : Products : Gossamer Links : Discussions :

display attached file - syntax problem

Quote Reply
display attached file - syntax problem
Hi,

I have created a new field in category table, a file field.
In the category.html I have added the link in order for the user to display this attached file that should be a pdf.

I know that I may seem strange or even illogical... It is request from the client :-)

I use the dyanamic pages

So in the category.html I have inserted this code

1 - <a href="http://websitename/links/allegati<%image_name('Allegato',$ID)%>">Attached</a>

2- http://websitename/links/allegati<%image_name('Allegato',$ID)%>">


2 -The second one display the right URL of the file like:
http://websitename/links/allegati/file.pdf

while the first one displays as link
http://websitename/links/allegati/file.pdf;d=1
and of course this link is not right

How can I overcome this problem and getr the link to my attach file?

Thanks for your answers
Quote Reply
Re: [vercyb] display attached file - syntax problem In reply to
Hi,

Have you tried using jump.cgi?

jump.cgi?ID=1234;view=Allegato

..and this should then prompt them to download the file :)

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!