Page 1 of 2
How to list files without subcategories
Posted: 19 Oct 2015, 18:15
by romi
Hello,
I try to have a complete list of files.
But when I choose the Category, on my website, this display the subcategories too.
My question is how to have a list of files based on a category but without displaying the subcategories of these files ?
Thank you in advance.
Re: How to list files without subcategories
Posted: 19 Oct 2015, 23:25
by Jan
Hi, you can comment the displaying of the subcategory here:
components\com_phocadownload\views\category\tmpl\default.php
See cca line 73.
Jan
Re: How to list files without subcategories
Posted: 20 Oct 2015, 17:40
by romi
Hi Jan,
Thank you for your answer.
I tried to comment subcategories (l.73) but after, no files are displayed.
You can see below an exemple of my phoca download tree :
Category 1
--Subcategory 1
-----File A
--Subcategory 2
-----File B
--Subcategory 3
-----File C
So, in a specific menu, I want to display all the files of the Category 1 (File A, B, C) without displaying the subcategories tree (1, 2, 3).
Thank you for your help.
Re: How to list files without subcategories
Posted: 21 Oct 2015, 13:27
by christine
Hi,
romi wrote:So, in a specific menu, I want to display all the files of the Category 1 (File A, B, C) without displaying the subcategories tree (1, 2, 3)
I think, it's not possible, because your files A, B & C are inside of your subcategories .....
Do you need subcategories? If not, I would put the files directly to Category 1 - just an idea
Kind regards, Christine
Re: How to list files without subcategories
Posted: 24 Oct 2015, 15:31
by romi
Hi !
Thank you for your reply.
I'll try to find an other way.
Just another question, do you know how to display top downloads and latest downloads ?
I don't find modules to do that.
Thank you.
Re: How to list files without subcategories
Posted: 24 Oct 2015, 16:54
by Benno
Re: How to list files without subcategories
Posted: 15 Nov 2015, 14:06
by sirkai
Hi
Anybody found a solution? I might have the same issue. I don't really need subcategories but putting all files in one category makes it hard to show them visually separated on the file list.
I cannot believe it is so hard to just display all available files listed under their subcategory on one page

Re: How to list files without subcategories
Posted: 16 Nov 2015, 22:53
by Jan
Hi, sorry, but now I don't understand what you exactly mean:
"I don't really need subcategories but putting all files in one category ... just display all available files listed under their subcategory on one page"?
Do you mean to display all the categories, subcategories and files on one site? If yes, did you read my answers about security problem? Because this needs to be customized for the server exactly. Displaying all categories, subcategories, and files on one site, means a large amount of memory for loading all the items from database, etc. which can cause slowing down the server, stopping it or displaying server/database errors, etc?
This is really something what needs to be done directly on the server when the server options and possibilities are known and when the count of items (categories, subcategories, files) is known. A lot of people are using download component with a lot of items - displaying them on one page can cause large problems - this is e.g. why pagination is used on internet (because to not overload the database). So this feature is not only "removing" pagination (which can be problematic, but about displaying all items at once which can have more deeper impact on server.
Jan
Re: How to list files without subcategories
Posted: 16 Nov 2015, 23:48
by sirkai
Hi Jan
Thx for your reply. I read your comments and wasn't sure why it was such an issue. Then again obviously I have not the same knowledge level you have on this topic.
Altogether I have maybe 40 files with about 5-6 categories at max. I would even live with having them on 2 pages but still it does not "feel" to be a ton of files. In the forum the suggestion was to use just one category and have all files in that. What is the fundamental difference to show 40 files without category and show 40 files under two categories so that it becomes a server stability issue ?
Anyway I now need to keep looking for something else to manage the files within Joomla.
I probably have to come back to write just plain HTML pages and add URL's to files located somewhere on the server.
Any other suggestion would be appreciated for a good working download component.
Thx, Kai
Re: How to list files without subcategories
Posted: 27 Nov 2015, 17:05
by Jan
Hi,
there is no problem with 40 file or 40 categories - but users can have 1000 files and mostly e.g. there are few categories but a lot of files.
This is what I have written, as it is a system, you cannot do system without limits as you don't know how the component will be used. I does not mean that if you use only 40 categories and 40 files that other users will do the same.
This is why I have written about the customization, If I know, I have only 40 files, I can modify the output and without any problems display all files and categories on one site, but this you can do in case:
- you know the limits
- you are on your server
but as default, as the component can be used everywhere with different count of files and folders, there must be some basic limiation rules (like pagination, not displaying every items on one site, etc.)
In case, I will do the component only for you and I will know there will be only 40 files and folders, I see no security problems, etc. but the component is made for unlimited count of users with very different environments
Jan