how to display page title in joomla 1.0.x

Two ways on how to display page title anywhere in your joomla 1.0.x template

1. You can use the following code and add this at the top of your template:

<?php
$myPageTitle = $mainframe->_head['title'];
$myPageTitle =substr($mainframe->_head['title'], strlen($GLOBALS['mosConfig_sitename']) + 3);
?>

Put the code below anywhere in your template body:

<?php echo $myPageTitle; ?>

2. Use available modules : Heavenly Titles

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Furl
  • Reddit
  • Smarking
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb
  • Simpy
  • Propeller
  • Fark
  • LinkedIn
  • Live
  • Mixx

1 Comment »

  1. Thanks! Short but useful!

    Comment by Nima — August 14, 2009 @ 1:23 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment