Hi!

How can I create role based menus (or content)?

--
Falu

Comments

sangamreddi’s picture

Menu's are permission based, if the user has access to the specified path, then the menu appears, if not the menu wont appear.

If you wnat to create role based content, use some node access modules Ex;taxonomy_access, tac_lite, node_privacy_by role, Simple access etc.

if you use these modules and create the content and then create the menu in menu item, the menu will be dispalyed to thsoe who has teh access to taht particular node.

Sunny                      
www.gleez.com | www.sandeepone.com

falu’s picture

Sorry I don't understand ...

I want to that some menus (node)can visible for defined groups

--
...Falu...

ninetwenty’s picture

Download and install one of the access modules. I use taxonomy_access, with this I can set up categories such as public and private. I only allow registered users to see the private stuff. This means that access to the content can be restricted by role.

Unfortunately, I have found that the links in the menu remain visible even when access is restricted with all of the access modules I have tried - which is I think what you are after.

falu’s picture

Thank You!

I have downloaded simple_access module, and it works fine :-)

...Falu...

venkat-rk’s picture

Really? Does simple_access hide/show menu links based on the roles?

sangamreddi’s picture

In Drupal 4.6.6 the menus appear only when the user have access to that page. The same thing is true with Drupal 4.7, but to my surprise, the functionality seems to be no more in 4.7. if the permission to the page is denied and still the menu is being displayed.

It worked earlier on 4.7 may be in RC, I didnt remeber i am using latest CVS. On reading this post I tested and noticed that its not working as expected.

Sunny                      
www.gleez.com | www.sandeepone.com

ninetwenty’s picture

So is this a bug in Drupal 4.7 then? Has it been reported? I need this functionality for a site I'm currently building for a client.

pixor’s picture

I am having the same problem using 4.7.3 - Is this a bug?

ninetwenty’s picture