Hi there,

here's one I've been beating my head against for a few days, probably there's a simple solution.

My primary menu is at the top of the page, and I have a bunch of primary menu items, call them

A B C D E

each of which links to a node.

I want to have each of these have dependent child submenus that open up when you click on a primary menu item, so

A -> a1, a2, a3
B -> b1, b2, b3, etc.

So that when you click on A, you see

A B C D E
a1 a2 a3

and when you click on B, you see

A B C D E
b1 b2 b3

I don't want to put the menus in blocks at the side; I am just playing with the Garland theme. I've gone to build->menus->settings and have all three options set to "primary links", and I have defined the Primary Links menu with members A, B, C, D, E, and each of these has child items a1, a2, a3 or b1, b2, b3 respectively. However, the child menus never show up at the top.

The help text in build->menus->settings says, "Select what should be displayed as the secondary links. You can choose the same menu for secondary links as for primary links (currently Primary links). If you do this, the children of the active primary menu link will be displayed as secondary links." which is exactly what I'm trying to do.

Also, if I set "Source for the secondary links: " to another menu that has members, that will display nicely, but won't change depending on which of the primary links I've clicked on.

What am I doing wrong? I don't want pulldowns or anything fancy.

-edit:- I am trying to do this: http://drupal.org/node/525568 -- is there a way to do it without an additional module? The above description makes it sound like it should be possible from the base install...Also, I've tried this with numerous themes (Garland, Chamaeleon, etc.)

Comments

prbass’s picture

I'd like to help, but it sounds like you are doing it right. You don't need a module, Drupal should do this out of the box.

I was going to suggest you checked that the secondary links were enabled for your theme at /admin/build/themes/settings/garland but seeing as other menus will display they must be.

Have you figured this out yet?

johnsalomon’s picture

> Have you figured this out yet?

No, it is driving up up a goddamned wall.

- Primary links are enabled in both theme-global and theme-specific settings
- As far as I can tell, this has nothing to do with blocks, since this theme seems to have only a right block and a left block. I want the stuff up top, as described in my awesome use of the alphabet up top
- Logged in or out makes no difference

Here are some screenshots. I am _sure_ there's some really simple, stupid explanation. Any help would be worshipped with a baby goat sacrifice.

http://imgur.com/a3hTP.png
http://imgur.com/7EYEc.png
http://imgur.com/HQpOA.png
http://imgur.com/ynEcQ.png
http://imgur.com/2m8gR.png

Tried it with all built-in themes, to no avail.

prbass’s picture

You might have to hold off on the baby goat sacrificing. I can't see why it isn't working.

Have you tried clearing the cache? (Go to /admin/settings/performance and scroll down to the bottom and press clear cached data.)

I hesitate to add that this shouldn't make any difference - but when in doubt, I clear the cache.

johnsalomon’s picture

no joy on that. What kills me is that I had it working with some dummy menu items earlier -- I somehow managed to assign them to a menu, which I then in turn assigned to the parent menu item which yet again in turn was listed under "Primary Links", and I can't for the life of me remember what I did. Argh!

prbass’s picture

Have you got any modules installed that could be messing this up?

I've just posted a link to this in the #drupal-support irc channel in the hope that someone will have some more intelligent suggestions...

johnsalomon’s picture

...I had installed wordpress import, trackback, Blog AddOns and Menu Block (the latest in an attempt to get this working.) I've since disabled all non-core modules, as well as all default modules but Menu and Taxonomy. I'll join the irc channel in a sec.

davidhernandez’s picture

Hmm. I just tried this and the only way I could get secondary links to NOT show up is to remove the check at /admin/build/themes/settings/garland. But you say other things you have put into secondary links appear. If this is a test site, I would try assigning primary links and secondary links to another menu to see if it behaves differently, or even reinstalling the menu module.

johnsalomon’s picture

Again, a dedicated secondary links menu shows up if I put items in that menu and set building->menus->settings->"source for the secondary links" to "secondary links." But that doesn't do me -- I want to have a primary links item's children (just 1 level) show up in that spot. And when I set "source for the secondary links" to "primary links", I get the idea from the instructions that this is what's supposed to happen, theoretically. Or am I on drugs?

Edit: I just blew everything away and installed from scratch, including the database. It works now.

No clue, I suspect evil demons. Thanks for your patience.