Category view

Phoca Download - download manager
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category view

Post 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
If you find Phoca extensions useful, please support the project
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category view

Post 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
If you find Phoca extensions useful, please support the project
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Category view

Post 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?
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Category view

Post by PowerJoe »

This is how I want it basically, http://prntscr.com/bbhrbh
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category view

Post 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
If you find Phoca extensions useful, please support the project
Post Reply