if ($typeUser!="SUPER USER") {
$menu->addChild(
new JMenuNode(JText::_('Simple menu'), 'URL')
);
$menu->addChild(
new JMenuNode(JText::_('Parent menu'), '#'), true
);
$menu->addChild(
new JMenuNode(JText::_('Submenu 1'), 'URL')
);
$menu->addChild(
new JMenuNode(JText::_('Submenu 2'), 'URL')
);
$menu->getParent();
}
Add custom menu items in back-end.
Detect the user group.
administrator/templates/XXX/html/mod_menu/default_enabled.php
Detect the user group.
administrator/templates/XXX/html/mod_menu/default_enabled.php
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.