Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Product Catalogue with images

Quote Reply
Product Catalogue with images
SmileNewbie Question!

I was hoping to use Links SQL 2.1.1 as a product catalogue for all the products that we stock. I noticed that one of the features metioned was:
Quote:
Support for file uploads - with built in support for file uploads, you can use Links SQL as an image gallery, or document management system, or download repository.


However, how do I include an image and detailed product info next to a link. I am sure this question has been asked by someone before but I have searched the forum to no avail.

Many Thanks in advance

Alex

www.indigoclothing.com



Indigo Clothing is a t-shirt printing company based in the UK.
Indigo Clothing | Promotional Clothing | T-Shirt Printing | Embroidery

Last edited by:

IndigoClothing: Dec 2, 2002, 9:50 AM
Quote Reply
Re: [IndigoClothing] Product Catalogue with images In reply to
Did you want to just shown an image with your links (i.e enter a URL in the database), or actually use the upload function? The earlier one is obviously easier Tongue

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!
Quote Reply
Re: [Andy] Product Catalogue with images In reply to
I just want to show an image with my links - can I add HTML to the description box to do this or is there a better method?

Thanks - Alex

www.indigo-clothing.com
Quote Reply
Re: [IndigoClothing] Product Catalogue with images In reply to
You could add a new field, 'image_name', and store the image name there. Then in your link.html template, you would do something like:

<%if image_name%>
<img src="/path/to/image/dir/<%image_name%>">
<%endif%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Product Catalogue with images In reply to
In Reply To:
You could add a new field, 'image_name', and store the image name there. Then in your link.html template, you would do something like:

<%if image_name%>
<img src="/path/to/image/dir/<%image_name%>">
<%endif%>
Is there a way to expand this "if" code to include a default image if there is no image for that specific item?

Thanks

Rich
Quote Reply
Re: [richonmaui] Product Catalogue with images In reply to
Let me ask another way: If I include a data field called "image_name", would this work on a detail.html and link.html

<%if image_name%>
<img src="/path/to/image/dir/<%image_name%>">
<%else%>
<img src="/path/to/image/dir/<%default_image%>">
<%endif%>



Thanks,

Rich
Quote Reply
Re: [richonmaui] Product Catalogue with images In reply to
Ok, I have answered my own question:

This works for me in both detail.html and link.html

First I added a field to the links table called "thumb_image". Then this code added to the page:

<%if thumb_image%>
<img src="<%build_root_url%>/thumbs/<%thumb_image%>">
<%else%>
<img src="<%build_root_url%>/thumbs/default_image.jpeg">
<%endif%>


Then modify any link to include the image name in the field.

Good luck,

Rich