Number of flies in subfolders

Phoca Download - download manager
merovingio77
Phoca Member
Phoca Member
Posts: 10
Joined: 18 Dec 2015, 15:01

Number of flies in subfolders

Post by merovingio77 » 26 Mar 2020, 16:08

Hi,

I would like to show in a main folder the total number of the files uploaded in the subfolders (At this moment I get zero and it looks like there are no files under the first level). Is it possible?

Regards.
Pietro

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

Re: Number of flies in subfolders

Post by Jan » 26 Mar 2020, 21:58

Hi, what do you exactly mean with "main folder"? Can you paste a screenshot.

If you mean category, files are counted for each category. It means, if the file is stored in subcategory, it is not counted in parent category.

To do so, the code must be customized - so the main category go through all the tree and count the files :idea:

Jan
If you find Phoca extensions useful, please support the project

merovingio77
Phoca Member
Phoca Member
Posts: 10
Joined: 18 Dec 2015, 15:01

Re: Number of flies in subfolders

Post by merovingio77 » 27 Mar 2020, 11:10

Hi Jan,

yes I would like to show in the parent category the number of files stored in the subcategories.
http://www.scuoleasmara.it/italiapa/for ... lunni.html
Pietro

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

Re: Number of flies in subfolders

Post by Jan » 27 Mar 2020, 16:47

Hi, in such case the component needs to be modified :-(

Jan
If you find Phoca extensions useful, please support the project

merovingio77
Phoca Member
Phoca Member
Posts: 10
Joined: 18 Dec 2015, 15:01

Re: Number of flies in subfolders

Post by merovingio77 » 27 Mar 2020, 21:18

Ok Jan, thank you.
Is it possible not to show the number of files just in the parent directory (teachers complain it looks like they did not publish any document)?
Pietro

christine
Phoca Hero
Phoca Hero
Posts: 1938
Joined: 28 Nov 2010, 17:20

Re: Number of flies in subfolders

Post by christine » 28 Mar 2020, 18:11

Hi Pietro,

You could store into your template.css, or user.css with:

Code: Select all

.pd-subcategory small {
display: none;
} 
but then, both are removed.

Kind regards
Christine

merovingio77
Phoca Member
Phoca Member
Posts: 10
Joined: 18 Dec 2015, 15:01

Re: Number of flies in subfolders

Post by merovingio77 » 28 Mar 2020, 21:37

Hi Christine,

thank you for your help. In that case, if the code removes the numbers both in parent and in sub-categories, I prefer not to touch the css.
Pietro

Post Reply