Menu permissions

sirius - April 7, 2009 - 19:46

Hi,
I’m new to drupal and I have a problem.

I want to give a content type or a user role only access to a part of the menu. How can I do this?

Or if this won’t work, how can is assign content typs to a specific menu?

greetings,
Sirius

try this module

jainrutgers - April 7, 2009 - 19:48

I already tried this module,

sirius - April 7, 2009 - 21:25

I already tried this module, but it’s only for adding restrictions to a menu item.
It doesn’t hide items from the parent item list and u can’t hide <main> items.

To hide content I already use “Content Access” and it works fine.
I need to hide items from the parent item list in menu settings or assign content types to a specific menu.

I also tried this module http://drupal.org/project/ctm but it doesn’t seem to work.

did nobody have an idea? :(

sirius - April 12, 2009 - 17:20

did nobody have an idea? :(

the quick other way i can

jainrutgers - April 12, 2009 - 17:28

the quick other way i can think of is to create two version of the same menu with different functionality and visibility depending on the role.

Chetan

Hi there, Well, in your case

abdullah5588 - April 12, 2009 - 18:26

Hi there,

Well, in your case what I feel best would be to create a block with custom created menu code using li and anchor tags. And then if you are good at php, wrap each li and anchor tag with php if conditions that checks the user role and and does whatever you want.

You can check code below to get an idea how to start:

http://www.dashplanet.com/tutorials/webmasters/drupal-cms/identifying-fo...

Abdullah

 
 

Drupal is a registered trademark of Dries Buytaert.