4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Fat Bastard on March 10, 2005, 12:34:25 PM

Title: fixed category image/thumbnail wanted
Post by: Fat Bastard on March 10, 2005, 12:34:25 PM
I've been looking for a while, and I can't imagine this hasn't been asked/done before, but I just can't find it...  :?

I would like to show one certain thumbnail taken from a category to show in front of the various categories on home.html. So no random image, but in front of every category its own fixed thumbnail.

TIA
Title: Re: fixed category image/thumbnail wanted
Post by: Jan on March 10, 2005, 12:45:21 PM
Open the template category_bit.html and add
Code: [Select]
<img src="{template_url}/images/{cat_id}.gif" alt="{cat_name}" />After that, copy images for every catgory to the "images" folder. They must be named by the cat_id, eg 1.gif for the image for category with cat_id 1.

Jan
Title: Re: fixed category image/thumbnail wanted
Post by: Fat Bastard on March 10, 2005, 02:39:37 PM
Thanks, it does exactly what I want!  :D