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

Comments

webdevbyjoss’s picture

Hello,

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

webdevbyjoss’s picture

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