Friday, 13 January 2006
This hack will help you have your site's title change on every page, displaying the title of the news or any content's title displayed.
PLEASE BACK UP the joomla.php file first.
Open your includes/joomla.php file
Around line 405 find this:
function setPageTitle( $title=null ) {
if (@$GLOBALS['mosConfig_pagetitles']) {
$title = trim( htmlspecialchars( $title ) );
$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];
}
And replace with the following:
function setPageTitle( $title=null ) { if (@$GLOBALS['mosConfig_pagetitles']) { $title = trim( htmlspecialchars( $title ) ); $this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename']; }
|
This hack served and helped you on your
project?, Then Send Me a Beer! >>>>> |
|
|
| |