Page 1 of 2

Category View

Posted: 26 Oct 2016, 00:46
by Limma
Hi from Italy,
I am using Phoca Download into the website of my school.
I have made a menu item called "Curricolo" connected to the category "Curricolo".
The "Curricolo" category, however, is nested, and when you click on the menu item "Curricolo" you can see two more categories: "Sviluppo curricolare" and "Documentazione".
The two new categories contain other categories that finally contain the files to be downloaded...

My problem is that when I click on the menu item "Curricolo" I can read (0) beside the "Sviluppo curricolare" and "Documentazione" categories, and I think it's because there are no files within.
Is there a way to show the number of subcategories in addition to the number of files?

Hoping to have been clear, thanks in advance for your kind attention!

Re: Category View

Posted: 28 Oct 2016, 16:32
by Jan
Hi, can you paste the screenshot where exactly do you get the (0)?

Yes, when there is no file, the (0) is displayed, when there is no subcategory 0 for subcategories is displayed - depends on which place

Jan

Re: Category View

Posted: 28 Oct 2016, 22:19
by Limma
Jan wrote:Hi, can you paste the screenshot where exactly do you get the (0)?

Jan
Maybe I can't past image on my messages.
The editor say "[img] is OFF"...

Re: Category View

Posted: 29 Oct 2016, 12:53
by christine
Hi,

you could use e.g.:
http://imgur.com/
http://imageshack.com/

Kind regards, Christine

Re: Category View

Posted: 29 Oct 2016, 18:30
by plamen
Same problem here.
I cannot switch off "Number of files" shown in brackets.
In Settings, Display Number of Files (Categories View) is set to 'NO', but it is valid only for Categories View, not to Category View probably.

Re: Category View

Posted: 29 Oct 2016, 18:56
by christine
Hi Limma & plamen,

Try following: adding at the end of template.css or custom.css:

Code: Select all

.pd-subcategory small {
display:none; 
}
Kind regards, Christine

Re: Category View

Posted: 29 Oct 2016, 19:43
by Limma
christine wrote:Hi Limma & plamen,

Try following: adding at the end of template.css or custom.css:

Code: Select all

.pd-subcategory small {
display:none; 
}
Kind regards, Christine
I have tried the code that you reported, and it works perfectly, but - unfortunately - it is not what I need...
I'm looking for a way to display the number of subdirectories in addition to the number of files in " Category View" (see my first post in this thread).

Is it possible?

Re: Category View

Posted: 29 Oct 2016, 19:55
by christine
Hi Limma,

in this way? Demo: https://www.phoca.cz/joomla3demo/phoca-download-demo

It seems, User plamen want to hide. Sorry, I'm a little bit confused now :-)

Kind regards, Christine

Re: Category View

Posted: 29 Oct 2016, 20:33
by Limma
Dear christine,
many thanks for your kind attention.

I understand well your confusion, and indeed User plamen want to hide the files number in "Category View".

On the contrary, I would like to see the number of files along with the number of subdirectories exactly as happens in the link you posted, but not in the "Categories View", but just in the "Category View"...

Re: Category View

Posted: 29 Oct 2016, 22:17
by plamen
Hi Christine,

Thank you, now file count is hidden.
I put your code in custom.css
Otherwise it would be a little bit confusing - a category with 3 sub-categories and zero files will be shown as "My_category (0)"