Page 1 of 1

How to show files in the "categories view"

Posted: 16 Oct 2014, 12:53
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?

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

Posted: 17 Oct 2014, 14:45
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

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

Posted: 18 Oct 2014, 15:59
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.

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

Posted: 23 Oct 2014, 17:37
by Jan
OK