$document->setTitle does not work in rocket theme - why? - Joomla! Forum - community, help and support


i have site rocket theme template following code in index.php:

code: select all

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <jdoc:include type="head" />
      <?php
      require(yourbasepath . ds . "rt_tabmodules.php");
      require(yourbasepath . ds . "rt_utils.php");
       require(yourbasepath . ds . "rt_head_includes.php");
       ?>
   </head>
<?php
      $document =& jfactory::getdocument();
      $thistitle = $document->gettitle();
      //echo $thistitle; // verified contains right value
      $document->settitle($thistitle);
      //echo $thistitle; // still ahs correct value wtf
?>


the problem having settitle not working in template. gettitle getting proper title out of joomla, when browse page, title in teh browser bar not value of $thistitle - it's whatever rocket theme wants be.

where hell template screw titles , why? ><






Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい