This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Wednesday, March 31, 2010

Set title of Joomla page

$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();
$conf =& JFactory::getConfig();
$sitename = $conf->getValue('config.sitename');
$mydoc->setTitle($mytitle.' - '.$sitename);

 

http://joomlapanel.com/joomla-article/58-page-titles-in-joomla-15.html

2 comments:

  1. thank you, it was very helpful, the code worked fine to change the head title

    ReplyDelete
  2. Great posting.In the SEO,Title is very important .It is great thoughts.It is very helpful.Thanks for making this post.

    Joomla developer

    ReplyDelete