Page 1 of 1
Gallery menu - title of category view with homepage-name
Posted: 04 Sep 2009, 18:45
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?
Thanks for an answer...
Stephan
Re: Gallery menu - title of category view with homepage-name
Posted: 06 Sep 2009, 08:14
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?
[SOLVED] Gallery menu - title of category view with site nam
Posted: 06 Sep 2009, 08:38
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.
Re: Gallery menu - title of category view with homepage-name
Posted: 08 Sep 2009, 18:41
by Jan
Ok, added to the feature request list.
Jan