#JoomlaTips: How to get specific menu items from Joomla?

  August 10, 2013 8:47pm

If you want to get specific menu item in Joomla 2.5. You can get it by using the following code:

$app = JFactory::getApplication();
$menu = $app->getMenu();
$menu_items = $menu->getItems('menutype', 'mainmenu');

Replace 'mainmenu' with the menutype that you want to get. This would equate to the system name for your menu.


1 Reponse

Post Response

Thank you for this tip. I'm looking forward for more tips. It's really helpful for Joomla newbies like me.

  FerrisWin August 11, 2013 11:27am reply (0)