sub sub category file number display

Phoca Download - download manager
cyberx
Phoca Member
Phoca Member
Posts: 11
Joined: 26 May 2009, 09:17

sub sub category file number display

Post by cyberx »

Hello!
How do I on / off switch on the number of multiple sub-categories in category names for the files?
Currently, the structure looks like this:
cat-(1/0)
--- SUBCAT-(0) [<-on / off this?]
------ subsubcat-(8)
----------file1-
----------file2 ...

I'd like to "SUBCAT" category is see on the number of files subcategories, or you could turn this off.
Understand me?
Could it be?
Help me! Thank you!
(sorry my english is poor)

Display Number of Files (Categories View) if i change no, nothing happens
Display Number of Files (Categories View - Header) if i change no, the main category number can't see, but the subcategory yes.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: sub sub category file number display

Post by Jan »

If you find Phoca extensions useful, please support the project
cyberx
Phoca Member
Phoca Member
Posts: 11
Joined: 26 May 2009, 09:17

Re: sub sub category file number display

Post by cyberx »

hi!
this is not perfect solution

possibel this option change each category separately?
(future request :))

thanks!
carlux3
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 13 Jan 2014, 17:00

Re: sub sub category file number display

Post by carlux3 »

hello !

I have the same issue....

Any new solution ?

Thank you
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: sub sub category file number display

Post by juansolos »

Hi,
any idea.
Indeed, if the sub cat shows 0 files because only sub sub cat have ones, it is a pity.

So
SUBCAT-(XXXX)
------ subsubcat-(8)
----------file1-
----------file2 ...
subsubcat2-(7)
----------file1-
----------file2 ...

How to remove only the XXXX or better show 15 files in 2 subcat.

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: sub sub category file number display

Post by Jan »

Hi, see parameters, some count items are in parameter, so they can be hidden in options.

If not, it can be easily done in CSS:

https://www.phoca.cz/documents/2-phoca-g ... ca-gallery (similar guide for Phoca Gallery, how to hide numbers with help of CSS)

See similar posts in this forum, where is described, why the number only displays the count in the particular category not in its subcategories.

Jan
If you find Phoca extensions useful, please support the project
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: sub sub category file number display

Post by juansolos »

Hi, thanks,
i know how hide the count item.

But i dont want to hide it everywhere.

So when the subcat display 0 item, it is not fine and not right.
An alternative could be to display the number of subsubcat like (2/0) but i can't do it in the category view.
Any idea?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: sub sub category file number display

Post by Jan »

Hi, in such case you need to have three numbers: count of subcategories/ count of files in the category/ count of files in all subcategories include this category :idea:

I think the best way is to customize, to exactly add which number/count you need there :idea:

Jan
If you find Phoca extensions useful, please support the project
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: sub sub category file number display

Post by juansolos »

Hi,
yes this could be fine.
Any idea to do this?

In the category view, i have only

Code: Select all

$valueSubCat->numdoc
At least how get the number of subsub cat?

Regards
Post Reply