I've created some menus, one parent along with a few children. When clicking the parent, it does not display the children. Yet works with all default relationships drupal has by default. Also, I can see the children under the parent.

Currently I have this menu:

Tools (parent)
-hammer (child)
-saw (child)

Any ideas?

Comments

Rewted’s picture

Actually... my menu is like this.

Tools (menu)
Saws (menu item / parent)
-Jig saw (menus item / child of saws)

dzazi’s picture

and in my case, it seems to be happening if the node is linked from 2 different menus, ie primary links and a custom menu that is the detailed site nav.

time for a bug report?

Rewted’s picture

I've submitted a bug report.

http://drupal.org/node/66288

Rewted’s picture

So my method works on your install?

nigels’s picture

I was having a simular problem with the submenus not expanding when the parent was clicked on.

This was happening because my primary menu was linking to the same places as my custom menu parent. There seems to be a bug not allowing duplicate menus to work properly.

The way I got around this is to use the full URL (example - http://www.mysite.com/node/43 ) for the primary menu items.
And the shorter link (example - node/43 ) for the custom menu.

Hope that helps in the mean time before the bug is fixed.

Nigel

offal’s picture

Thanks for posting the solution - it solved my problem

I had the same problem in drupal 5.0

Deleting the primary menu item did allow the custom menu parent item to expand and show sub-links - just like you said.

I also found that when I recreated the primary menu item it then all worked, even though they were both pointing to the same path (node/1234). I didn't have to use a full URL for the primary link after deleting and recreating the primary link.

chris.gr’s picture

There are many postings concerning this problem.
Is there already a patch? I have version 4.7.4 installed.

I have two custom menu items (in different menu blocks), pointing to the same page. When I replace the url aliases with the node construct, it still does not work at whole.
In one menu, it always works, but in the other menu, the menu item does not expand.

Any further hints?

j0k3z’s picture

Chris,

Edit the menu and input the FULL URL PATH. ie, instead of just node/100 type in www.domain.com/node/100

chris.gr’s picture

Can not do this because then the tree structure in the url is lost and some menu blocks are shown based on this.

Morkalin’s picture

Hi everyone,

I'm posting this purely for future searchers of the forums since I couldn't find this when I searched.

I had the same problem and the solution that I found was to only use the short name forms (node/5 etc.) and NOT the full URL (http://drupal.org/node/5). I found that if they were mixed up on the same menu, ie some had the long name and some had the short name, then it wouldn't expand my menu. Very very weird IMO but making them all short names seemed to fix mine. This was after I had tried the "Two menu items pointing to one node" solution and all that which didn't work.

Hope this helps someone!

Regards,
Morkalin

ms1’s picture

I have been bothered with this issue for long, but Morkalin your post has solved my problem.

Thank You very much.

------------------------------

But there is an issue, possibly if you can help!

i.e. when I try to include 'forums' and 'image galleries' as menu-items for my customized menu.
I created sub-items for these menu-items but I do not see these sub-items when the parent is clicked.

I also read that another cause of this issue could be different items pointing to the same node. But I disabled 'image galleries' and 'forums' from 'navigation-menu' and tried. But no use. Is it that I need to completely delete these links from 'navigation-menu'? (if so, how, as there is no delete link for these items in Navigation-Menu ?)

Thanks & Regards

jonjonz’s picture

Same problem in 4.5.8, had to use node/4 etc instead of alias in menus for them to work.

ceege111’s picture

At least for me - but that fix (the absolute reference) solved the problem.

C.J.

earlwer’s picture

Although the fixes above work, the underlying problem is still there in version 6.12:

If a currently open menu has the same link as another menu item that you select, the newly selected menu will not open.

This is some kind of caching problem. Drupal sees that the menu you've selected is pointing to the same page that is already open, and does... nothing.

The work-around is to use the complete URL for one link and the node/## for the other.

I found this when creating a dummy menu for a demo. All menu options pointed to the same temporary page. Clicking on another menu would do nothing if the page was already open.

I'll try to report this...