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

Image Display in Detailed Pages

Quote Reply
Image Display in Detailed Pages
Hi There, I'm fairly new to gossamer links so apologies if I ask any stupid questions.

I am trying to get images to show up in my detailed page listings. I have added the fields into the links database and the add form and they show up in the admin fine. What I am having trouble with is:

1. what do I add to my detailed template to get the image to show correctly? I have tried this:

<%if SDE_Photo1%><img src="/Detailed/UserImages/<%SDE_Photo1%>"><%endif%>

and when I view the source code I get this:
<img src="/Detailed/UserImages/IMG_3396.jpg">

but the image actually gets stored here:
/Detailed/UserImages/4/4-IMG_3396.jpg

So, I'm a little confused about how its storing in these directories and how to link to them.

2. when I go to modify a link, the image form fields are blank and the image values are lost when a user updates a listing. How do I change this so that it is similar to the admin where it changes to "view" and has delete check boxes if an image is present?

Many thanks!
Jan
Subject Author Views Date
Thread Image Display in Detailed Pages aquaman 3547 May 2, 2005, 2:20 AM
Thread Re: [aquaman] Image Display in Detailed Pages
Andy 3451 May 2, 2005, 8:38 AM
Thread Re: [Andy] Image Display in Detailed Pages
aquaman 3369 May 7, 2005, 12:50 AM
Thread Re: [aquaman] Image Display in Detailed Pages
Andy 3391 May 7, 2005, 1:18 AM
Thread Re: [Andy] Image Display in Detailed Pages
aquaman 3346 May 7, 2005, 3:11 PM
Post Re: [aquaman] Image Display in Detailed Pages
Andy 3365 May 8, 2005, 11:56 PM