menu module madness

rivulguy - July 17, 2008 - 01:10

I found at least 10 modules that help you control menus better. Here are most of them:

http://drupal.org/project/menu_block
http://drupal.org/project/menu_trim
http://drupal.org/project/slicedmenu
http://drupal.org/project/menu_restricter
http://drupal.org/project/menu_stp
http://drupal.org/project/menu_per_role
http://drupal.org/project/menu_block_split
http://drupal.org/project/jumpmenu
http://drupal.org/project/jump
http://drupal.org/project/submenutree

I simply need to have better control over menu items - restricting visibility depending upon a user's role. Can anyone cut through this confusion and recommend something? Thanks in advance!

Don't just hide the links, control the URLs

dman - July 17, 2008 - 01:36

Most of those modules are about alternative RENDERING of menus.
In Drupal, access control (restrictions) is generally handled by restricting access to THE TARGET ... and then the menus automatically do not display links to paths you are not allowed to see.
The thing is, that if you didn't do it this way, then you could 'hide' items from the menu, but the URL would still be there :-(

So look at the pages you want to restrict, and do access control on THEM. Menus will follow from that.
Can't say which access control module is appropriate unless you describe the problem. TAC and OG are popular for nodes. Most of the module-specific URL access is handled in user rights on a per-module basis.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
[sorry if this double-posts, d.o died on me]

I have one pesky page that

rivulguy - July 17, 2008 - 12:40

I have one pesky page that only the site admin should have access to. It's a special page called "Site Configuration" that I created using content type "Page". I have been able (not sure how...) to restrict access to the page to users who have "administer nodes" permission. But I need better control than that because that privilege controls other items as well. The other thing is that it is showing up in the Nav menu, regardless of the user's role. I could move it to another menu I suppose, but I will end up having to move other things as well. Any suggestions?

The node privacy by role

-Anti- - July 17, 2008 - 12:58

The node privacy by role module would probably help:
http://drupal.org/project/node_privacy_byrole

 
 

Drupal is a registered trademark of Dries Buytaert.