Hello,

I have created a site with a homebrew version of suckerfish.

In my template.php file I have :

function phptemplate_preprocess_page(&$vars) {
// Generate menu tree from source of primary links
  $vars['primary_links_tree'] = menu_tree(variable_get('menu_primary_links_source', 'primary-links'));
}

and in the page.tpl.php I have :

if ($primary_links):
print $primary_links_tree;
endif;

that creates the nested links list that I want . My css does the rest... and I've got a little JS to make it all work in IE6.

However I have a problem :

I need one of my first level menu items to not have a link on it.

- Item 01
- subitem 0101
- subitem 0102
- subitem 0103
Item 02 --------------------------------> I don't want a link on this.
- subitem 0201
- subitem 0202
- subitem 0203
Item 03
- subitem 0301
- subitem 0302
- subitem 0303
Item 04
- subitem 0401
- subitem 0402
- subitem 0403

In /admin/build/menu/item/---/edit it appears to be impossible to save a menu item without a path associated with it.... Do have an idea how I can achieve this?

thnaks

Comments

Funkwarrior’s picture

Have you tried menu_firstchild?

http://drupal.org/project/menu_firstchild

apprentia’s picture

No I hadn't.. it does exactly what I want.. thankyou very much. (sorry for the delay in answering)