Page 1 of 1

Category view

Posted: 20 May 2016, 00:17
by PowerJoe
Hi Phoca,

Question, I'd like to move 2 things around, see screenshot: http://prntscr.com/b63w9v.

Basically I want the files to display before the categories. On which file can I do that?

Regards,

PJ

Re: Category view

Posted: 21 May 2016, 14:50
by Jan
Hi, this is the category view:

components\com_phocadownload\views\category\tmpl\default.php (categories)
components\com_phocadownload\views\category\tmpl\default_files.php (files)

in case you use bootstrap 3 output:

components\com_phocadownload\views\category\tmpl\default_bootstrap.php (categories)
components\com_phocadownload\views\category\tmpl\default_files_bootstrap.php (files)

Jan

Re: Category view

Posted: 23 May 2016, 18:14
by PowerJoe
Hi Jan,

I do not have the bootstrap 3 files. But I tried changing a bit but I couldn't get the files to display first.
Any idea how I can get this to work?

Thank,

PJ

Re: Category view

Posted: 29 May 2016, 19:19
by Jan
Hi, do you run the latest version of Phoca Download:

What you mean with "I couldn't get the files to display"?

Jan

Re: Category view

Posted: 02 Jun 2016, 18:08
by PowerJoe
I run 3.1.0 which does the job for me.

I want the files to display first and then the categories.
Now it's the other way around first categories and then files, I want first files then category.
Is this possible, if so, how?

Re: Category view

Posted: 02 Jun 2016, 18:11
by PowerJoe
This is how I want it basically, http://prntscr.com/bbhrbh

Re: Category view

Posted: 03 Jun 2016, 23:18
by Jan
Hi, then you need to customize directly the category view:

components/com_phocadownload/views/category/tmpl/default.php (the categories)

components/com_phocadownload/views/category/tmpl/default_files.php (files)

So, in default php, you should change the loading of template default_files.php --> echo $this->loadTemplate('files');

Jan