Page Title Bugs??? I thinks the page title have a bug, if we in the homepage (frontpage), the page title will show "Home - Website Name", if we click other menu the menu title always show in the page title, example: "News - Website Name", "Contact - Website Name", etc, etc.
Also if we click in the content item details, the content item title will show in the page title.
I see the script in the includes/mambo.php, function setpagetitle:
//--------
function setPageTitle( $title=null ) {
if (@$GLOBALS['mosConfig_pagetitles']) {
$title = trim( htmlspecialchars( $title ) );
$this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
}
}
----------//
the = (equal) in the "$this->_head['title'] = $title ...." is just one = (equal).
I think the correct script must have two = (equal).
So the right script is:
$this->_head['title'] == $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
Is that right?
Or any other way to hide the "Menu Title" in the page title??
thanks,
Stephen |