Page 1 of 1
Number of flies in subfolders
Posted: 26 Mar 2020, 16:08
by merovingio77
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
Re: Number of flies in subfolders
Posted: 26 Mar 2020, 21:58
by Jan
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
Jan
Re: Number of flies in subfolders
Posted: 27 Mar 2020, 11:10
by merovingio77
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
Re: Number of flies in subfolders
Posted: 27 Mar 2020, 16:47
by Jan
Hi, in such case the component needs to be modified
Jan
Re: Number of flies in subfolders
Posted: 27 Mar 2020, 21:18
by merovingio77
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
Re: Number of flies in subfolders
Posted: 28 Mar 2020, 18:11
by christine
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
Re: Number of flies in subfolders
Posted: 28 Mar 2020, 21:37
by merovingio77
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