I'm using Joomla 3.4.8, and I have all of my pages linked to menu items. I can't figure out how to get the menu item title to show in the tag of the page, rather than only the article title.

For eg. My Menu item title is 'test', when i press the button it shows test but in that menu item there are many articles. when i click on the article in the test page. It only shows the article name and not the menu item. What i want is that it shows the article name + the menu item.

I know that I can change each 'Browser Page Title' setting for each menu item and individually override the menu item title. But I'm worried this will create confusion in the future when trying to update page titles.

1 Answer 1


Here is the simple answer for you.


$menu = JSite::getMenu()->getActive();

$doc= JFactory::getDocument();
$doc->setTitle($menu->title.' - '.$this->item->title);


On your front end you should now have a title formatted as Menu Title - Article Title


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.