Give the click behavior more options
lindsayo - September 23, 2009 - 01:09
| Project: | DHTML Menu |
| Version: | 6.x-3.5 |
| Component: | CSS code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
It would be super-cool if the click behavior of the parent item could be configured. Or maybe have a hover behavior?
So hovering would expand the sub-menu, and a click would bring up the node of the parent item.
Maybe I should be looking at a different menu module?

#1
I agree with that. Basically, the most missing option is to expand menu by clicking on the arrow on the left of the link and to enter the page when you click on the link itself. (exactly like windows explorer).
Jquery menu provide it and this module was created only because DHTML menu don't provide it by itself. But Jquery menu have a bug that make it incompatible with multiple block in one single sidebar, and the support seems dead.
DHTML menu is the most supported and used by far, and I think this would be the ultimate module you need to fit all your needs.
#2
Like others, we need menu functionality which is intuitive and consistent with other menu systems the typical viewer has used. Specifically, we need to be able to open a node when a menu item is clicked (the intro page to a book, for example) while at the same time expanding that menu section. The italicized menu item that results from the "Add an extra page link to each expanding menu item" is non-intuitive, as is double clicking on a menu link. (Except if your my mother, who seems to want to double-click on everything.)
It seems like it would be trivial to open a node that a menu item points to at the same time the child menus are expanded.
This is a critical emough issue for us that we're digging through the DHTML menu code now to try to hack this behavior in. Can someone on the module team tell us if this is already being looked at? Or if the team would like some help with the coding?
#3
I understand the behavior of DHTML menu in side menus, but not when it is in a main, tabbed menu. When you have a tab that says "Home", there is just no way to explain to your users why clicking on Home doesn't actually take you there. So, I would love to have more configurability added in if possible. -Thanks for an otherwise great module!
#4
Recently my clients where asking if a "expand child menu if hover" feature was possible using dhtml menu module, however I cannot find any way to solve it.
I found a piece of code that might be changed (manually) to make it partially work in dhtml_menu.js:
$(li).find('a:first').click(function(e) {Drupal.dhtmlMenu.toggleMenu($(li));
return false;
});
by changing the "click" to "hover", the first element of the menu will expand on hover, but not the rest...has anyone found any solution or workaround?
Thanks!
#5
All of the features discussed here are already in 6.x-4.x, which will hopefully be stable around the end of the year, see #479716: Port Drupal 7 improvements back to D6.