Active
Project:
Dynamic Persistent Menu
Version:
7.x-2.0-alpha2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2011 at 08:43 UTC
Updated:
8 Dec 2011 at 20:18 UTC
If an item from the menu is clicked, it remains expanded. I need the menu to collapse if there is no mouseover. I need it to function the same way as the top menu at GM.com.
I'm guessing there's no way to do this from the interface? If I need to dig into the code, would anyone happen to know what code to comment out/modify?
Feel free to let me know if I'm describing another module that would suit my needs better.
Thanks.
Comments
Comment #1
alberto56 commentedEffectively, this is a bug in x.x-2.x, You'll find the stable 6.x-1.x branch works as you desire.
The timeout seems to be ignored in x.x-2.x
This will be fixed first in 7.x-2.x, and then backported to 6.x-2.x
Cheers,
Albert.
Comment #2
alberto56 commentedIn 7.x-2.x, as in 6.x-2.x, the problem is an undefined timeout in the javascript:
This might have to do with the timeout being zero by default when adding new menus to admin/config/user-interface/dynamic_persistent_menu
Comment #3
alberto56 commentedIn my tests, the submenu does disappear as expected if only one dynamic menu is defined, but not if there are several.
Comment #4
goye2cz commentedTo be sure we're on the same page, I'm talking about after having clicked a menu item, the submenu for that category stays visible while browsing anything in that category. I only have one dynamic menu.
I tried downgrading to the stable version but was unable to access any administration pages for dynamic persistent menu. I'll have to try to recreate my problem in another clean install to be sure.
Comment #5
alberto56 commentedHi,
In the 1.x branch, there are no admin pages: one and only one dynamic menu block is active by default and you define the menu and timeout directly in the block config page.
Albert
Comment #6
goye2cz commentedI can confirm that after switching to 1.x, the problem remains. Adjusting timeout doesn't affect the problem I described. An interesting thing is that the timeout seems to work properly in both versions I've used.
Comment #7
alberto56 commented@goye2cz can you please confirm that I understand your issue correctly:
(1) you have a page a, and page b, and a page c
(2) your menu structure looks like this
-(menu root)
--a
---b
---c
(3) When you are on the home page, b and c become visible only when you hover over a, and stay visible for the period defined by the timeout attribute.
(4) When you navigate to either page b or c, b and c are *always* visible on the dynamic menu.
Does that well describe the problem? If not, can you pleaes provide a link to your website so I can see for myself?
Thanks,
Albert.
Comment #8
goye2cz commentedThat is in fact what I'm describing. I can imagine it's not really considered a problem. But in my case, I always want the menu to disappear when the mouse isn't hovering it.
What I have right now is only my local test version. If need be, maybe I can load it up on the web.
Comment #9
alberto56 commented@goye2cz ok, thanks, I had misunderstood then. I have opened a new issue for your problem: #1365318: one some pages, menu never disappears,
Please follow that one instead,
cheers,
albert