Page 1 of 1

Pictures Count in Categories view

Posted: 16 Jun 2010, 15:23
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

Re: Pictures Count in Categories view

Posted: 17 Jun 2010, 09:25
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.

Re: Pictures Count in Categories view

Posted: 18 Jun 2010, 12:52
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

Re: Pictures Count in Categories view

Posted: 20 Jun 2010, 09:01
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?

Re: Pictures Count in Categories view

Posted: 20 Jun 2010, 13:47
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