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

traviss359’s picture

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.

mozart_ar’s picture

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():

$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

technikh’s picture

Cheers,
TechNikh

In 30 seconds set up Automated Visual testing of your website. Zero coding. https://drupal.org/project/drulenium
Ever dreamed of styling your view, We have a solution for you. https://drupal.org/project/views_stylizer

technikh’s picture

I guess I can use this for my use case. http://drupal.org/project/multiple_node_menu

Cheers,
TechNikh

In 30 seconds set up Automated Visual testing of your website. Zero coding. https://drupal.org/project/drulenium
Ever dreamed of styling your view, We have a solution for you. https://drupal.org/project/views_stylizer