Author Topic: fixed category image/thumbnail wanted  (Read 4810 times)

0 Members and 1 Guest are viewing this topic.

Offline Fat Bastard

  • Newbie
  • *
  • Posts: 20
    • View Profile
fixed category image/thumbnail wanted
« 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

... I like BABIES...

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: fixed category image/thumbnail wanted
« Reply #1 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Fat Bastard

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: fixed category image/thumbnail wanted
« Reply #2 on: March 10, 2005, 02:39:37 PM »
Thanks, it does exactly what I want!  :D

... I like BABIES...