Author Topic: Image count...  (Read 3239 times)

0 Members and 1 Guest are viewing this topic.

Offline rycat

  • Newbie
  • *
  • Posts: 28
    • View Profile
Image count...
« on: June 23, 2003, 03:32:38 PM »
Hi,

I have multiple categories on my site... The top level categories never contain images, only sub categories. Is it possible to somehow remove the (Image Number) info only for the top level categories...

So basically for any high level category that will be displayed on the home page I dont want it to display how many images are in that category...

Hope this is clear, any help would be massivly appreciated.

Thanks

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Image count...
« Reply #1 on: June 23, 2003, 04:38:07 PM »
Try this:

Replace
Code: [Select]
"num_images" => $num_images
with
Code: [Select]
"num_images" => $num_images,
"show_num_images" => $cat_id == 0 ? 0 : 1

in includes/functions.php

and change
Code: [Select]
({num_images})
to
Code: [Select]
{if show_num_images}({num_images}){endif show_num_images}
in the template category_bit.html

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline rycat

  • Newbie
  • *
  • Posts: 28
    • View Profile
Image count...
« Reply #2 on: June 23, 2003, 05:13:35 PM »
Jan,

Thank you so much for the quick reply... It works perfectly!!

Richard