Menu Tiltle and Category Title showing on Page

Phoca Gallery - image gallery extension
MAD King
Phoca Member
Phoca Member
Posts: 22
Joined: 22 Sep 2014, 20:25
Location: Tennessee

Menu Tiltle and Category Title showing on Page

Post by MAD King »

Hello,

I tried everything (I think) on joomla and I am not able to let only the phoca gallery category title display. It always shows the menu and category title on the gallery page.

Means when I have a gallery showing, I have on the page header the category and gallery title showing. I would like to have only the gallery title showing.

Can anyone help me with this please?

Thank you

Joomla 3.3.3
Phoca Gallery 4.1.1
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu Tiltle and Category Title showing on Page

Post by Jan »

Hi, then you need to customize the output of the category view:

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

and comment the part where the category title is listed:

Code: Select all

$heading = '';
if ($this->params->get( 'page_heading' ) != '') {
	$heading .= $this->params->get( 'page_heading' );
}

// Category Name Title
if ( $this->tmpl['display_cat_name_title'] == 1) {
	if (isset($this->category->title) && $this->category->title != '') {
		if ($heading != '') {
			$heading .= ' - ';
		}
		$heading .= $this->category->title;
	}
}
Jan
If you find Phoca extensions useful, please support the project
MAD King
Phoca Member
Phoca Member
Posts: 22
Joined: 22 Sep 2014, 20:25
Location: Tennessee

Re: Menu Tiltle and Category Title showing on Page

Post by MAD King »

Thank you Jan. Will it be overwritten after updating Joomla or Phoca Gallery?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu Tiltle and Category Title showing on Page

Post by Jan »

Hi, yes, so you need to set it as backup or you can set it to your template and override whole Phoca Gallery category view output :idea:

Jan
If you find Phoca extensions useful, please support the project
MAD King
Phoca Member
Phoca Member
Posts: 22
Joined: 22 Sep 2014, 20:25
Location: Tennessee

Re: Menu Tiltle and Category Title showing on Page

Post by MAD King »

Thank you. I need to figure out how this works with the overwride.
noobadix
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 29 Oct 2013, 18:40

Re: Menu Tiltle and Category Title showing on Page

Post by noobadix »

@MAD King I could give you a hand there, I've just done that myself. Coincidenctally I had the very same issue at the same time! :D
MAD King
Phoca Member
Phoca Member
Posts: 22
Joined: 22 Sep 2014, 20:25
Location: Tennessee

Re: Menu Tiltle and Category Title showing on Page

Post by MAD King »

I figured it out. This is brilliant how it works. Thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu Tiltle and Category Title showing on Page

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
deboni
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Aug 2009, 13:59

Re: Menu Tiltle and Category Title showing on Page

Post by deboni »

I'm having the same problem of not wanting to show the menu title together with the category title.

This seems to have been solved in the above but can not see how to change that code.

Could you please post that code here?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Menu Tiltle and Category Title showing on Page

Post by Jan »

Hi, just see this code:
viewtopic.php?f=1&t=27023&p=101433#p100478

:idea:

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