Customising the dynamic page title

From Joomla! Documentation

Revision as of 08:03, 20 September 2010 by Batch1211 (Talk | contribs)

To customize the page title to add the site name followed by the document title, edit index.php in the template that you are currently using. For example, directly after the <head> tag add the following to show "Site Name - Page Name" as the browser's page title:

 $document =& JFactory::getDocument();
 $document->setTitle($mainframe->getCfg('sitename') . " - " . $document->title);