Strict menu - Joomla

Here is a quick module I wrote recently for Joomla. Its a very simple modification to the mod_mainmenu module and generally works just like the mod_menu with a few exceptions.

 

When it renders the menu items it only shows the links that have the users authorisation level assigned to it.
If a user is not logged in the strictmenu will show them the public links, and hide the registered links as usual. If the user sucessfully logs in, the strictmenu will show only the registered links and hide the public links. This is where it differs from the mod_mainmenu module. The mod_mainmenu still displays the public links.

 

This modified behaviour is useful on sites where you want the menu to appear the same for public user and logged in users but have the links pointing to different locations for each situation. In the actual menu you have two versions of a link, a public and a registered version and have them go to their respective locations.

This module also adds the sfx “_parent” to the class of any link that has children items.

You can download mod_strictmenu here

Comments
Add New
Powered by !JoomlaComment 3.26

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Help my beer fund

RocketTheme Joomla Templates