Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

image before category

Quote Reply
image before category
I find it in resources area.but link not found.

where I can get it?


Quote Reply
Re: image before category In reply to
Edit the subcategory.html template file.

Regards,

Eliot Lee
Quote Reply
Re: image before category In reply to
oops,I mean different Image for different category.
for example:
cat 1 has image 1
cat 2 has image 2
ect.
help please

Quote Reply
Re: image before category In reply to
Set up a new field cat_image in the Category table. Put the image you want to use in each category in it. <%cat_image%> would then be different for each category.

You need to add this to the $OUT list in nph_build to make it work.


PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: image before category In reply to
Ok,I just added $OUT{cat_image} [outcome] $category_r->{'Cat_Image'};
to Get the category info.
in nph-buid.cgi

my category table have this field:

Column:cat_image
Position:12
Type :CHAR
Form Length:40
Max Length :255
Not Null:yes
Default:
Value:
Validation:
Index Weight: 0

its code in my subcategory.html template:

for example I need have image for TEST CATEGORY.
Im add to cat img form this: http://site/img.gif

but its wount to show this img.

help please.

Quote Reply
Re: image before category In reply to
Hi,

Try this putting this in subcategory.html:

<img src="<%Cat_Image%>">

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com