How to show files in the "categories view"

Phoca Download - download manager
oierla
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 16 Oct 2014, 12:41

How to show files in the "categories view"

Post by oierla »

Hi,
I've been trying to show files in the categories view, but I found no way to do it.
I found some topics about people who wanted to show all files and categories, but that is not what I want. It's quite simple, or at least it looks like that.
This is my phoca download component's page:
Image

The category "Dokumentu orokorrak - Documentos generales" will have no subcategories, but it will have some files in it. Right now it has 3 files, as you can see, but no file is shown.

The only thing I would like to change in the component is that I would like those three files to be shown in that Categories View. Nothing more.

I can't do it using the layouts the component provides, but I assume it is possible, so what should I do?

PD: How can I hide that "No subcategories" text?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show files in the "categories view"

Post by Jan »

Hi, "no subcategories" text you can remove here:

components/com_phocadownload/views/categories/tmpl/default.php

Remove: JText::_('COM_PHOCADOWNLOAD_NO_SUBCATEGORIES')

There is no option to display files in categories view as this can be security problem (overloading database when all categories, subcategories and files will be loaded at once). So such needs to be customized directly for the server, to know which memory features it as and which count of files will be loaded there :idea:

Jan
If you find Phoca extensions useful, please support the project
oierla
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 16 Oct 2014, 12:41

Re: How to show files in the "categories view"

Post by oierla »

Hi, thanks for your answer.
I removed the "no subcategories" text with no problems.
About the other problem,I changed the code of that "(0/3)" and added some text after that, so that the result now is "3 documents".
No document is shown, but at least now you can clearly see that that category has 3 files in it.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show files in the "categories view"

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply