Javier Yep Garcia Webdeveloper Freelance Php Mysql Websites Advertisement
1 Friday, 05 September 2008  
 

Main Menu
 Home
 Joomla Corner
 Joomla 1.5
 FAQ & Various Subjects
 Contact Me

Polls

Who's Online
We have 39 guests online

Latest News
CB 1.1 dont save profile data
How to change the favicon
MyBlog from Azrul.com - View Entry Button
Differents Backgrounds for the Frontpage Items
Dynamic Titles

 
arrow Home
Dynamic Titles   PDF  Print  E-mail 
Friday, 13 January 2006

This hack will help you have your site's title change on every page, displaying the title of the news or any content's title displayed.

PLEASE BACK UP the joomla.php file first.

Open your includes/joomla.php file

Around line 405 find this:

function setPageTitle( $title=null ) {

if (@$GLOBALS['mosConfig_pagetitles']) {

$title = trim( htmlspecialchars( $title ) );

$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];

}

And replace with the following:

function setPageTitle( $title=null ) {
  if (@$GLOBALS['mosConfig_pagetitles']) {
   $title = trim( htmlspecialchars( $title ) );
   $this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
           
  }

This hack served and helped you on your project?, Then Send Me a Beer! >>>>>


top

 

Personal Loan - Loans - New York Hotel - Unsecured Loans - Advertise Here!

 
 
JavierYep.com Designed By Javier Yep
© Copyright 2003 - 2007 All Rights Reserved