970_90

Tuesday, 6 September 2011

joomla1.5 How to set page title, meta description & meta keywords

In joomla 1.5,  How to set page title, meta description & meta keywords

Create an object
 
$document =& JFactory::getDocument(); 

Set the page title 
$page_title ='This is Page Title';
$document->setTitle($page_title ); 

Set the page description 
$page_description ='This is page descriptions'; 
$document->setDescription( $page_description); 

Set the page keywords 
$page_keywords ='This is keywords';
$document->setMetadata( 'keywords', $page_keywords);




No comments:

Post a Comment