blog.calebnance.com

It's So Loud, Inside My Head...

Wednesday, 19 October 2011 14:10

How To Set The Page Title In A Joomla Component

Written by  Caleb Nance

Below is how you set the page title for a Joomla 1.5 component.

With MVC, the standard place to put this code is going to be the view.html.php file inside your view folder.

$document = JFactory::getDocument();
$document->setTitle('Title of Page');

And that is it. Leave the comments below, hope this helped!

Last modified on Wednesday, 19 October 2011 14:16
blog comments powered by Disqus