Thursday, October 21, 2010

Changing page titles in joomla using the API

Using API15:JDocument/setTitle

Initialize Joomla Page Document Variable

$doc =& JFactory::getDocument();

then use the code below

$doc->setTitle("Your page title here");


Notes:

API15:JDocument/setTitle  - Sets the title of the document

Syntax:

setTitle($title)


Parameter Name Default Value Description
$title
$title public

No comments:

Post a Comment