Page 1 of 1
Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 20:29
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!
Re: Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 21:29
by Jan
Hi, there is no such option, so this needs to be customized directly in the output (e.g. per template override).
Jan
Re: Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 21:40
by likestuff
What file would I use for the override?
Also, I just sent you an email re: Paypal.
Thanks!
Re: Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 22:00
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
Re: Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 22:17
by likestuff
Thanks Jan. I'll check it out.
Just sent you another email
Re: Move Display Ordering Select Box To Top of Page
Posted: 20 Oct 2020, 23:20
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!
Re: Move Display Ordering Select Box To Top of Page
Posted: 21 Oct 2020, 12:21
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
Re: Move Display Ordering Select Box To Top of Page
Posted: 04 Nov 2020, 21:15
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> </div>';
What am I doing wrong please? Thanks!
Re: Move Display Ordering Select Box To Top of Page
Posted: 04 Nov 2020, 23:52
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