Category View

Phoca Download - download manager
Limma
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2016, 00:27

Category View

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category View

Post 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
If you find Phoca extensions useful, please support the project
Limma
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2016, 00:27

Re: Category View

Post 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"...
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Category View

Post by christine »

Hi,

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

Kind regards, Christine
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: Category View

Post 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.
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Category View

Post 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
Limma
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2016, 00:27

Re: Category View

Post 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?
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Category View

Post 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
Limma
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2016, 00:27

Re: Category View

Post 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"...
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: Category View

Post 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)"
Post Reply