Drupal 6 - how show/hide menu item by role ?

nico059 - June 25, 2008 - 18:26

Hi,
I'm looking for a solution to show hide menu item by role,
I know that I can create different block/menu and show/hide them by role, but i really like to simplify that by using the navigation menu.
My menu item links to a normal page created by my user (cck type, view, panel ...)

Anyone has an idea ?
- Module,
- custom module ?

I try to to create a custom module, for example:
$items['node/11'] = array(
'title' => 'my menu item',
'page callback' => 'node_page_view',
'page arguments' => Array(1),
'access callback' => 'user_access',
'access arguments' => Array('access my_menu_item'),
'type' => MENU_NORMAL_ITEM
);
but I have cck error when i click this link

Hello, I have same problem.

webdevbyjoss - September 5, 2008 - 07:47

Hello,

I have same problem. What is the solution for this?

Hey! Solution is here

webdevbyjoss - September 5, 2008 - 07:59

Hey! Solution is here http://drupal.org/node/51325 .

 
 

Drupal is a registered trademark of Dries Buytaert.