Hi,
I''m looking for a way in Drupal 6 to restrict users in where they can place menu items. In Drupal 5 there was the option 'Restrict parent items to' but this seems to have been replaced in D6 with 'Default menu for content'.
The handbook says that:
Drupal 6 allows you to select which of your site menus is selected by default in the content authoring form. All other menus are still visible/accessible within the Menu settings drop-down, but you can shepherd your user to use the menu of choice.
From this I'm presuming that the Core will no longer restrict menus as in D5, but I know giving full access to all menus will give lots of headaches (on both ends) when it comes to tech support for menus.
Is there any module or workaround that people might recommend for this? Anything that I've looked at before (e.g. 'Menu Subtree Permissions' module) isn't compatible with D6. I've done some digging but can't find anything else on the site (or the internet in general!).
Thanks,
Dave
PS - sorry if this is the wrong forum - it seemed to be the best description from the list to choose.
Comments
OK - for myself and anyone
OK - for myself and anyone else who may find this helpful in the future:
I've opened up menu.module & after a lot of rummaging with the API documentation, have realised the line I needed to change was #443 - from
menu_get_menus($all = TRUE)tomenu_get_menus($all = FALSE).This change means the 'Parent Item' dropdown only shows user-defined menus, leaving out the system's own menus. I can't limit the selection further, but the main thing for me was to remove the main Navigation menu and the Primary/Secondary Links as options for users.
The trouble here is that I'm editing a Core module, so my changes will presumably be overwritten with every system update.
I've tried putting a snippet in my template.php file to do the work above using
function phptemplate_menu_get_menusas per the page on Using Theme Override Functions but this doesn't seem to work.If anyone could offer clarification on what I'm doing wrong, or another way to override the menu_get_menus function I would appreciate it!
~ Dave
I'm looking for the same
I'm looking for the same thing!
Any hope to find a solution?
My need is to restrict the menuby content type, or by taxonomy... similar feature would be great!
---
Antonio
http://taldeitali.it
me too
Hi,
A menu restriction by content types would be great!
I'm wondering that there is nothing like that already.
I’ve tested http://drupal.org/project/menu_stp.
But it is still in development, it has error and doesn’t work for me.
I hope anyone can help.