Gallery menu - title of category view with homepage-name

Phoca Gallery - image gallery extension
Grandcru
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 02 Sep 2009, 21:43

Gallery menu - title of category view with homepage-name

Post by Grandcru »

Hi again!

I really want to use the gallery menu module, but one thing is not like I want it to be: when I click on the category I want to show, the title of the shown category includes the name of the site ("site test" in my case).

How can I disable that, to show only the category-name, without the site-name? :roll:

Thanks for an answer...

Stephan
Grandcru
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 02 Sep 2009, 21:43

Re: Gallery menu - title of category view with homepage-name

Post by Grandcru »

Hi !
I found, that the generated link includes always Itemid=0. If I change that in a published Itemid, the componentheading changes in that one.
I think I have to configure joomla not to display "site name - " before the gallerly-name it we have Itemid=0. But where?

Any idea?
Grandcru
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 02 Sep 2009, 21:43

[SOLVED] Gallery menu - title of category view with site nam

Post by Grandcru »

Ok... it's solved. But I made a hack of the component: in views, category, tmpl, I changed the default.php from:

Code: Select all

// Heading
$heading = '';
if ($this->params->get( 'page_title' ) != '') {
	$heading .= $this->params->get( 'page_title' );
}
if ( $this->tmpl['displaycatnametitle'] == 1) {
	if ($this->category->title != '') {
		if ($heading != '') {
			$heading .= ' - ';
		}
		$heading .= $this->category->title;
	}
}
to:

Code: Select all

$heading = '';
if ( $this->tmpl['displaycatnametitle'] == 1) {
	if ($this->category->title != '') {
		$heading .= $this->category->title;
	}
}
That way, the heading is correctly displayed with the menu module of phoca BUT the heading of galleries shown via a normal menu point is not shown... The problem is not completely solved... for me it's ok, but could made problems for others.

Could be a possible improvement of the menu module to define the heading that should be displayed.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery menu - title of category view with homepage-name

Post by Jan »

Ok, added to the feature request list.

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