Cannot Remove Back to Category Button

Phoca Gallery - image gallery extension
jinshang
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 24 Mar 2015, 16:23

Cannot Remove Back to Category Button

Post by jinshang »

Dear Phoca Team,

I would like to remove the phoca "back to category button" from default_images.php

I have removed the flollowing code:

// Display back button to categories list
if ($cv->item_type == 'categorieslist'){
$rightDisplay = 1;
}

from
com_phocagallery\views\category\tmpl\default_images.php

Image
The back button however is still rendered.

I wonder if I have to alter the code below:
// Display back button to categories list
if ($rightDisplay == 1) {
// A Start
echo '<a class="block"';
echo ' href="'. $cv->extm.'"';

Or do I need to remove the back button from elsewhere?

Thank you very much and have a great day ahead

Dave
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9965
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Cannot Remove Back to Category Button

Post by Benno »

Hi,
you can hide Phoca Gallery 'Back Button' in Phoca Gallery Optons:
backend --> Components --> Phoca Gallery --> Control Panel --> Options --> Category View Settings -->
Display Back Button=No
Display Categories View Back Button=No
Save & Close

Kind regards,
Benno
jinshang
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 24 Mar 2015, 16:23

Re: Cannot Remove Back to Category Button

Post by jinshang »

Hi Benno,

Thank you for your reply. It works like charm. I wonder if it is possible to do it from template instead of backend.

Thank you very much and Cheers,

Dave
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9965
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Cannot Remove Back to Category Button

Post by Benno »

Hi,
I wonder if it is possible to do it from template instead of backend.
Why you want to do it from template if it's possible from backend ??
Or does this mean it's solved ??

Kind regards,
Benno
jinshang
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 24 Mar 2015, 16:23

Re: Cannot Remove Back to Category Button

Post by jinshang »

Hi Benno,

I just tried to do it from template so that I dont have to disable it from the back end everytime I install the theme on new joomla installation.

But it is solved.

Thank you Benno

Cheers,

Dave
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9965
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Cannot Remove Back to Category Button

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply