Page 1 of 1

Images count miss subcategories

Posted: 06 Oct 2011, 12:03
by kata32
I have this category example:

Food(1) <- category
--Fruit(2) <- subcategory
--Cackes(3) <- subcategory
Toys(3) <- category

so found the way to hide subcategories and show only first level categories using the "Display Subcategories On Each Page" set to "Nowhere" in Category View Settings. But the result is:

Food(1)
Toys(3)

instead of

Food(6)
Toys(3)

There is the way to have the right images count?

Thank's

Adriano

Re: Images count miss subcategories

Posted: 06 Oct 2011, 15:45
by Jan
Hi, the category only displays count of images in the category not in subcategories. For such feature you need to modify the code to make some recursive function to count all images in the subcategory tree.

Jan