Author Topic: [Request] Thumbnail Representation of Each Sub Category  (Read 5064 times)

0 Members and 1 Guest are viewing this topic.

Offline stampgang

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Request] Thumbnail Representation of Each Sub Category
« on: November 07, 2002, 03:06:03 AM »
At the moment, all sub categories are using a folder icon as the thumbnail representations.

Is it possible to incorporate *different* thumbnail representation for each of the sub category?

For example:

Category: Artist
Sub Category: Monet, Salvador Dali, Pablo Picasso etc

When people click on the category Artist, they will be taken to the list of the sub category, and  at this page, I would like them to see a different thumbnail representation for each of the sub category (such as a picture of Monet's face for sub category Monet, a picture of Salvador Dali's face for sub category Salvador Dali etc).

Thanks.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Maybe
« Reply #1 on: November 07, 2002, 03:19:23 AM »
The closest thing 4images can do is display a random thumbnail from that category.  Open the template category_bit.html.  Use this code there:
Code: [Select]
{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
You can use a random thumbnail from the given category in place of the folder icon.

Offline stampgang

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Request] Thumbnail Representation of Each Sub Category
« Reply #2 on: November 07, 2002, 03:37:51 AM »
Actually I was thinking of a specific *static* thumbnail for each of the sub category.

I'm currently in the process of setting up a web site for stamps from different countries in the world. The thumbnail representation for each of the country *should be* the flag for each country. The content of each of the subcategory will be the relevant stamps published by that particular country.

So at the moment, the random thumbnail solution will not work for me as if I use that, the random thumbnail will display the different stamps of that country instead of the flag. Plus, using a random image for the thumbnail representation will put a lot of strain to my server as I intend to have 10000 images or more with 4images.

I prefer *not* to do this manually (by changing the sub category listing page to a static HTML file, use the flags as the thumbnail representations and link each country to their appropriate listing of stamp images).

I would like to find out whether anybody has a solution to this or whether this feature can/will be incorporated into the next version of 4images.

I was thinking of something in line of the following procedure:

1. Upload the thumbnail representations to a specific folder.
2. At the admin section, we can go to a page where we can organize the thumbnail representations. There will an HTML form with be pull down menus: pull down menus on the left will list the file name of the thumbnails, pull down menus on the right will list the subcategories.
3. Then we can just match the correct thumbnail representation with the right sub category and submit the HTML form once we are satisfied with the choices.

Of course if there is a better solution than this, it would be great!

Thanks.