Move Display Ordering Select Box To Top of Page

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

Move Display Ordering Select Box To Top of Page

Post by likestuff »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan »

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: 172
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan »

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: 172
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff »

Thanks Jan. I'll check it out.

Just sent you another email :)
likestuff
Phoca Professional
Phoca Professional
Posts: 172
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff »

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: 2723
Joined: 28 Nov 2010, 17:20

Re: Move Display Ordering Select Box To Top of Page

Post by christine »

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: 172
Joined: 18 Jul 2008, 03:06

Re: Move Display Ordering Select Box To Top of Page

Post by likestuff »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Move Display Ordering Select Box To Top of Page

Post by Jan »

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