Hi,
I would like to display different instances of the Main Menu (i.e. Mega Menu) if a user has logged in. I tried to to it with the plugin MetaMod, which can load different instances of a module, but since the Mega Menu is not a module but rather hard coded this seems to be more difficult.
There was anothe post here: http://www.joomlart.com/forums/topic/load-a-different-mega-menu-if-user-is-logged-in/
with the same question. However the solution provided doesn’t work for me.
I copied this PHP code to the very top of /templates/ja_kyanite_ii/layouts/blocks/mainnav.php
[PHP]
<?php
$user = & JFactory::getUser();
if ($user->get(‘guest’)) {
//not login
T3Parameter::_setParam (‘menutype’, ‘pubic_menu’);
} else {
//login
T3Parameter::_setParam (‘menutype’, ‘logged_in_menu’);
}
?>
[/PHP]
and changed the menu names to the desired menus. However I get the error “Fatal error: Class ‘T3Parameter’ not found on line 5.
It would be great if I could get some help here!
Cheers