How to access only the Component heading/title in a Joomla! 1.5 template
How to access only the component heading/title in a Joomla! 1.5****template when building a new template and the component heading needs to be in a strategic place on the template. Answer: Insert the following code where you need to have the component heading displayed on the template. //Open PHP tag <?php //First we instantiate the document object, to get all document details. $document =& JFactory::getDocument(); //Now we echo the component heading by echoing the getTitle() method of the getDocument class echo $document->getTitle(); ...