Posted by dan_no_yes on November 19, 2009 at 3:05pm
I have a site with a large news/ section. Every time I create a news item I add a menu link title (usually same as node title), and then make its parent 'news' - a primary links item. I would like at this stage to disable the menu item: this allows me to set the item's context for the primary menu and breadcrumbs, without it cluttering the secondary menu. I have to jump to edit the menus to do this - is there a way to do this directly from within the node edit form? Or is there a better way to achieve this 'context setting'?
I only use secondary links menus for other content types.
Apologies if this is documented elsewhere - couldn't find it.
Any help appreciated.
Comments
Me too
I am also looking for something like this but have not come across it yet. If I find something, i will try to remember to post the solution here.
Maybe this is not the better
Maybe this is not the better way to do it, but it works for me:
Adding this code in menu.module at function menu_form_alter():
<?php$form['menu']['hidden'] = array(
'#type' => 'checkbox',
'#title' => t('Hidden'),
'#default_value' => $item['hidden'],
'#description' => t('Menu items that are hidden will not be listed in any menu.'),
);
?>
I am posting a patch here: http://www.bakersys.com/drupal-6-hidden-menu-item-node-edit-page
without modifying the core
without modifying the core module
http://eagerfish.eu/adding-enabled-checkbox-into-node-menu-settings-in-d...
Cheers
TechNikh
http://twitter.com/TechNikh
I guess I can use this for my
I guess I can use this for my use case. http://drupal.org/project/multiple_node_menu
Cheers
TechNikh
http://twitter.com/TechNikh