Page 1 of 1

Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 06:47
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

Re: Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 07:10
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

Re: Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 07:26
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

Re: Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 14:55
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

Re: Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 18:07
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

Re: Cannot Remove Back to Category Button

Posted: 04 Apr 2015, 18:16
by Benno
You're welcome!

Kind regards,
Benno