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

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Programming Blogs - BlogCatalog Blog Directory