Is there a way to get the Alias field of a main menu item in Joomla 1.5 from mod_mainmenu module? I know you can access the menu using this code:
$menu = JSite::getMenu();
I need to use the Alias field to hold a sub-title for the menu item. Is it possible to fetch this from the modMainMenuXMLCallback()
function in mod_mainmenu? Thanks.
$menu = JSite::getMenu();
$alias = $menu->getItem($id)->alias; // if you have id of menu
$menu = JSite::getMenu();
$alias = $menu->getActive()->alias; // alias of active menu
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With