Extension talk:CustomTitle

What's the need and function?


 * SEO. --LauraHale 00:45, 21 May 2009 (UTC)

Title not work with 1.16.0
I tested it with 1.16.0. The page title part worked well, but it seems do nothing to header title tag.


 * How do I change the tag on on certain pages? Is there an alternative?

Modification that works with 1.16.0
A small trick that does the job with 1.16.0: function onSkinTemplateOutputPageBeforeExec(&$m_skinTemplate, &$m_tpl) {       if (isset($this->customTitle)) $m_tpl->set('title', $this->customTitle); if (isset($this->customPageTitle)) { $m_tpl->set('pagetitle', $this->customPageTitle); $text = $m_tpl->data['headelement']; $regex = "#(\)(.*)(\<\/title\>)#e"; $customtitle = $this->customPageTitle; $title = "' '.'$customtitle'.' '"; $text = preg_replace($regex,$title,$text); $m_tpl->set('headelement', $text); }       return true; } 79.86.134.104 15:00, 1 March 2011 (UTC)