Monday, January 25, 2010

Change Joomla default meta info in a Component

In the templates of Component, in view.html.php before display() be called. add following line:


$document =& JFactory::getDocument();
$document->setDescription('you description');
$document->setMetaData('keywords', 'you keywords');

No comments:

Post a Comment