Images count miss subcategories

Phoca Gallery - image gallery extension
kata32
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Oct 2011, 18:38

Images count miss subcategories

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Images count miss subcategories

Post 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
If you find Phoca extensions useful, please support the project
Post Reply