Pictures Count in Categories view

Phoca Gallery - image gallery extension
Antoni Gual
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2010, 15:17

Pictures Count in Categories view

Post by Antoni Gual »

Hi

I have PG configured to hide subcategories in the categories view. The count that's displayed next to the category name does not include pictures in subcategories, thus hiding the true size of the category.
Is posible to have the count of the whole category (including subcategories)

Regards
Antoni Gual
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2010, 15:17

Re: Pictures Count in Categories view

Post by Antoni Gual »

I guess it's not that easy...
I have found the thread about how to remove completelyy the count. Thats's not what i wanted but it's better than having a partial count.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pictures Count in Categories view

Post by Jan »

Hi, yes it is not so easy as some recursive function to count all the items in all categories needs to be used, but I think, there is somewhere topic where this is described :idea:

Jan
If you find Phoca extensions useful, please support the project
Antoni Gual
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2010, 15:17

Re: Pictures Count in Categories view

Post by Antoni Gual »

Jan:
In fact the user tab of the upload images frontend is displaying the number of pictures upload by the user. As there is one category per user, this value is what i need in the categories view.
Could you give me a clue about where to find the code for it, so i can try some cut and paste?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pictures Count in Categories view

Post by Jan »

Could you give me a clue about where to find the code for it, so i can try some cut and paste?
Hi, Phoca Gallery has over 70.000 lines of code, changing some feature does not mean changing some line is some file, mostly you need to change more lines in more files (plus watching different dependencies). As I didn't do such modification yet, I really cannot say what should be changed and where the code is located for this :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply