Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [srinivas] New user - How to display an icon next to category name

Quote Reply
Re: [srinivas] New user - How to display an icon next to category name In reply to
Hello, srinivas.

The better codes to use would be:

Quote:

<%if cat_image%>
<img src="<%build_image_url%>/default/<%CategoryID%>.gif" alt="<%Name%>" width="insertvalue" height="insertvalue" border="0">
<%endif%>


Using the PRIMARY key in the Category table is better since that will stay the same over time. If you use <%Name%>.gif, then if you edit the CATEGORY Name column, then you will also have to edit the category image file name.

========================================
Buh Bye!

Cheers,
Me

Last edited by:

Heckler: Dec 20, 2001, 7:50 PM
Subject Author Views Date
Thread New user - How to display an icon next to category name srinivas 1789 Dec 19, 2001, 6:55 PM
Thread Re: [srinivas] New user - How to display an icon next to category name
Andy 1732 Dec 20, 2001, 12:47 AM
Post Re: [AndyNewby] New user - How to display an icon next to category name
Paul 1733 Dec 20, 2001, 11:16 AM
Post Re: [srinivas] New user - How to display an icon next to category name
Stealth 1697 Dec 20, 2001, 7:49 PM