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
Pictures Count in Categories view
-
Antoni Gual
- Phoca Newbie

- Posts: 3
- Joined: 16 Jun 2010, 15:17
Re: Pictures Count in Categories view
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.
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.
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Pictures Count in Categories view
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
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Antoni Gual
- Phoca Newbie

- Posts: 3
- Joined: 16 Jun 2010, 15:17
Re: Pictures Count in Categories view
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?
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?
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Pictures Count in Categories view
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 thisCould you give me a clue about where to find the code for it, so i can try some cut and paste?
Jan
If you find Phoca extensions useful, please support the project