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!
Category View
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category View
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 26 Oct 2016, 00:27
Re: Category View
Maybe I can't past image on my messages.Jan wrote:Hi, can you paste the screenshot where exactly do you get the (0)?
Jan
The editor say "[img] is OFF"...
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
-
- Phoca Professional
- Posts: 101
- Joined: 16 Mar 2014, 13:23
Re: Category View
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.
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.
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: Category View
Hi Limma & plamen,
Try following: adding at the end of template.css or custom.css:
Kind regards, Christine
Try following: adding at the end of template.css or custom.css:
Code: Select all
.pd-subcategory small {
display:none;
}
-
- Phoca Newbie
- Posts: 8
- Joined: 26 Oct 2016, 00:27
Re: Category View
I have tried the code that you reported, and it works perfectly, but - unfortunately - it is not what I need...christine wrote:Hi Limma & plamen,
Try following: adding at the end of template.css or custom.css:
Kind regards, ChristineCode: Select all
.pd-subcategory small { display:none; }
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?
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: Category View
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
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
-
- Phoca Newbie
- Posts: 8
- Joined: 26 Oct 2016, 00:27
Re: Category View
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"...
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"...
-
- Phoca Professional
- Posts: 101
- Joined: 16 Mar 2014, 13:23
Re: Category View
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)"
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)"