Move Display Ordering Select Box To Top of Page

Phoca Gallery - image gallery extension
likestuff
Phoca Professional
Phoca Professional
Posts: 151
Joined: 18 Jul 2008, 03:06

Move Display Ordering Select Box To Top of Page

Post by likestuff » 20 Oct 2020, 20:29

Hi there,

Is it possible to move the "Display Ordering Select Box", to the top of the gallery, just below the page title, instead of the bottom?

Thanks!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43156
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan » 20 Oct 2020, 21:29

Hi, there is no such option, so this needs to be customized directly in the output (e.g. per template override).

Jan
If you find Phoca extensions useful, please support the project

likestuff
Phoca Professional
Phoca Professional
Posts: 151
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff » 20 Oct 2020, 21:40

What file would I use for the override?

Also, I just sent you an email re: Paypal.

Thanks!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43156
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan » 20 Oct 2020, 22:00

Hi,
if it should be done in Phoca Gallery category view, then:

components\com_phocagallery\views\category\tmpl\default.php

where you can just move the pagination from bottom to top (move following code):

Code: Select all

echo $this->loadTemplate('pagination');
Jan
If you find Phoca extensions useful, please support the project

likestuff
Phoca Professional
Phoca Professional
Posts: 151
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff » 20 Oct 2020, 22:17

Thanks Jan. I'll check it out.

Just sent you another email :)

likestuff
Phoca Professional
Phoca Professional
Posts: 151
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff » 20 Oct 2020, 23:20

Hi Jan,
echo $this->loadTemplate('pagination');
I see the line above in 2 places so not sure which one to move. It's on approximately line 209 and 131.
I moved one but I'm not sure if it's the right one or if I moved it to the wrong place or if the override is not correct.

This is my override:
/templates/myTemplate/html/com_phocagallery/views/category/

Thanks!

christine
Phoca Hero
Phoca Hero
Posts: 2061
Joined: 28 Nov 2010, 17:20

Re: Move Display Ordering Select Box To Top of Page

Post by christine » 21 Oct 2020, 12:21

Hi,

to be sure, you have: components\com_phocagallery\views\category\tmpl\default.php ?
I found this:

Code: Select all

echo $this->loadTemplate('pagination');
in line no. 105

Kind regards
Christine

likestuff
Phoca Professional
Phoca Professional
Posts: 151
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff » 04 Nov 2020, 21:15

Hi there,

I'm still not getting this to work and I'm not sure what I'm missing:

I took a copy of the file from here:
components\com_phocagallery\views\category\tmpl\default.php

I add it to my template override here:
/templates/myTemplate/html/com_phocagallery/views/category/default.php

I also tried this but it didn't work either:
/templates/myTemplate/html/com_phocagallery/views/category/tmpl/default.php

I switched the pagination code above the images code like this:

Code: Select all

	echo $this->loadTemplate('pagination');

	echo $this->loadTemplate('images');

	echo '<div class="ph-cb"></div><div>&nbsp;</div>';
What am I doing wrong please? Thanks!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43156
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan » 04 Nov 2020, 23:52

Hi, the template override folder does not include subfolder views, it should be changed from:

/templates/myTemplate/html/com_phocagallery/views/category/default.php
to:
/templates/myTemplate/html/com_phocagallery/category/default.php

Jan
If you find Phoca extensions useful, please support the project

Post Reply