Before 4.5.0 I used menus and was very happy with the block level functionality it gave me as far as creating menus anywhere and in whatever way I liked. Now with 4.5.0, even though the menus module works, I figured I'd use the built-in drupal functionality with menu_on-the-fly. Things went pretty quickly and everything was working great till I tried to click on one of the group elements that was collapsed. (ie/ http://www.razing.net - look for Games, Avernus Cube, Karmic Retribution 2, etc). It defiantly refused to expand.

So I tried a few different things; the first of which was to create another quick drupal site since I was upgrading and I figured this to be a database issue. So I added in the module, created a new menu group, added two menu item that pointed to nowhere (the second being the child of the first), loaded up the block, and clicked on the parent. Low and behold it expanded. So I compared 'menu' from one database to the other, everything looked in order.

Then I decided to replicate the same exact process on my live site, on a hunch that it was working on the test site because of the invalid target. Sure enough. To double check myself I went back to the test site and added pointers to actual content, clicked on the parent node to see if it would expand, nada. It was staying collapsed and that was that.

So I dinked with menu_otf.css, menu_otf.module and despite having tried to remove all instances of 'collapsed' the block still stubbornly refuses to expand any group item that points to valid content.

Being the stubborn mule that I am, I bothered to load xdebug with the devel module, yet I'm still having trouble tracing down the component that's writing:
<li class="collapsed"><a href="/project/kr2" title="The Cage" class="active">Karmic Retribution 2</a></li>

If anyone has some bright ideas, I certainly wouldn't mind the help.

-Dustin

Comments

flntobi’s picture

Which version are you using now?

I have the same problem. Collapsed menu items don't expand when they are selected.
If I add a new item with subitem but invalid target, it expands. But as soon as I add a valid target it doesn't expand anymore, even if setting an invalid target again.

I can't figure out where the problem is. Can anybody help?

Steven’s picture

The problem occurs when you use a path alias for a menu item instead of the real path. Switch to real paths, and the problem should go away.

Note that Drupal will still output the aliased path in the browser.

--
If you have a problem, please search before posting a question.

flntobi’s picture

What do you mean by real path?

is "/node/3" a real path?

If it is, is still have the same problem.