By dccrane on
I guess I'm dense, but reading everything I can find about menus still doesn't tell me how to create menu entries with secondary entries that behave like the built-in "Administer" menu items (on the left.). I see elaborate modules like Nice-Menu, CSS mods, Jave Scripts, and I see misleading material like http://osdir.com/ml/php.drupal.support/2004-03/msg00049.html but, in the end, I conclude that it cannot be done easily.
Say it isn't so! It seems like the most obvious need possible.
Comments
Assuming I'm understanding
Assuming I'm understanding what you're looking for here are some ideas. If not, could you be a little more specific about what you've already tried to do.
If you would like to create a new menu separate from your existing Primary navigation start by navigating to Administer > Site Building > Menus and creating a new menu. If you just want to use your existing Primary menu structure you can skip this step.
Next go to Administer > Site Building > Blocks, and place the block for either your primary navigation, or your newly created menu into either the left or right sidebar as desired.
If you're menu already has top level items and children it "should" function as expected already. Clicking a top level item should reveal its children. If you menu doesn't already have menu items in it create a couple of new pages and use the "Menu" options on the node form to add the new pages to your menu. You should be able to nest things and have it work as expected this way.
Once your menus are expanding/collapsing as desired you can navigate to Administer > Site Building > Menus > My Menu and choose to have certain menu items always expanded if desired.
Possibly helpful handbook page if you haven't seen it yet: http://drupal.org/getting-started/6/admin/build/menu
I found the problem.
I found the problem. I was using .HTM references in my menus, not node references. Under those circumstances, it doesn't expand.
Thanks.
How do you maintain it for nodes?
I'm not sure this is the correct place to post this, so please redirect me if I should be elsewhere.
I have my menu expanding and collapsing as it should when clicking on the parent and child links (clicking parent expands it to show the children, clicking children keeps them there).
Now, what happens when the child links to, say, a view displaying a list of links to nodes, and you want the menu to stay expanded when you click on the node?
So I navigate to 'Primary', 'Child', then -> node. When I get to the node, the menu has collapsed again.
I can understand why, simply because the node is not assigned to that menu, but I don't want to assign the nodes to a menu. Assigning to a menu means a) I have a lot of menu items I don't want, and b) the content editor has to remember to fill in an extra section when creating nodes.
I've read things about hook_menus and various modules but didn't really understand it.
I would have thought this was a common problem.
Any help??