How to place 'Back' buttons at the bottom of the gallery

Phoca Gallery - image gallery extension
MichaelD
Phoca Member
Phoca Member
Posts: 10
Joined: 25 Mar 2023, 17:31

How to place 'Back' buttons at the bottom of the gallery

Post by MichaelD »

When I activate the 'Back' buttons in category view, I get the 'Back' buttons as the first entry on the display of images. How can I display them at the bottom of the image list, preferably on a new line?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to place 'Back' buttons at the bottom of the gallery

Post by Jan »

Hi, the only way is to overwrite the output in your template (the category view output) :idea:

Jan
If you find Phoca extensions useful, please support the project
MichaelD
Phoca Member
Phoca Member
Posts: 10
Joined: 25 Mar 2023, 17:31

Re: How to place 'Back' buttons at the bottom of the gallery

Post by MichaelD »

Hi Jan
That's what I assumed. Unfortunately, there are plenty of files that configure the output. Could you point me to the specific files and code lines where the back button is configured? I'm not a pro, so I have a very hard time making sense of the code.
Thanks in advance!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to place 'Back' buttons at the bottom of the gallery

Post by Jan »

Hi, the back button is rendered in category view output:

components/com_phocagallery/views/category/tmpl/default_categories.php

There is an if condition to render back button to categories view or back button to category in category view (in case the subcategory has parent category)

The link is on line 28

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