Closed (fixed)
Project:
DHTML Menu
Version:
6.x-1.x-dev
Component:
User Interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Dec 2007 at 11:09 UTC
Updated:
16 Apr 2008 at 11:21 UTC
In some cases, I like an expanded menu to collapse automatically when another menu item is clicked. The settings page should have an option to enable or disable this behavior. Or, it would be even more flexible if you can choose it on a per-block basis.
Comments
Comment #1
marcvangend*bump*
Sorry, I know I don't have the 'right' to be answered, but I'd like to know if my request has been read, and I'm curious what you think. Is my question clear at all? Is this something you would consider adding, or do you think "do it yourself, you lazy bum!"?
Thanks.
Comment #2
TomChiverton commentedI'd like to see this feature too - with the admin menu, for instance, all the branches end up open, and restored to that, which makes the page very tall.
Comment #3
lilou commentedInsert in dhtml_menu.js in the top of Drupal.dhtmlMenu.switchMenu function :
It'll be great if this feature add to dhtml_menu (enable in the settings).
Comment #4
cburschkaI would like this too. I'll see if I can make some options available that control the behavior of the menus.
Options:
Comment #5
CosmicVoyager commentedsubscribed
Comment #6
hydrian commentedAny possibility this feature be ported back to the D5.x branch?
Comment #7
cburschkaUnlikely, but faintly possible. I probably won't do it myself though...
Comment #8
ionuts71 commentedSo... I have the following taxonomy structure:
and the same Primary links structure.
Links to vocabulary are provided by Vocabulary index module.
If I click on the first level (vocabulary) and on any story from second level, DHTML works OK.
If I click on the third level (Term_111) the menu is collapsing automatically (see http://www.hvac.ro/ right column. Vocabulary_1 = Electrice; Vocabulary_2 = Termice).
How can I use DHTML for multilevel menus?
Comment #9
marcvangend@ ionuts71, #8:
It seems as if your question is not related to the feature request discussed in this issue-thread. Please start a topic in the forum or create a new support request issue. I recommend the forum, because your issue involves two different modules.
Comment #10
ionuts71 commentedThank you for your answer. My problem is related to this feature.
I insert the code from #3
and now the menu is collapsing automatically but only the first level is working.
Now I disabled the second module (vocabulary index) and I have only DHTML menu with primary links, similarly structured like in my previous reply:
If I click on Vocabulary_1 the menu is expanding showing the next level (Term_11 and Story_12).
If I click on Story_12, the menu works OK. If I click on Term_11, instead of showing the next level, Story_111, the menu is collapsing. So with the code from lilou (reply #3) partially work.
You can see how it work on http://www.hvac.ro/ on the right column DHTML Menu with lilou's modiffications and on the left column the regular menu block.
Comment #11
cburschkaI don't understand. Are you experiencing an actual bug with the real, unmodified Drupal 6 version of dhtml_menu, or are you experiencing a bug after manually adding code that isn't finished or tested properly?
Please either open a bug report or replace your modified files with the original ones, but do not post in the issue queue for this feature that has not even been written yet.
Comment #12
dmsmidtI'd like to see this added too. It would be possible to hack the js of the module for me, but I'd like it better as an standard option in the module. *subscribing*
Comment #13
brmassa commentedGuys,
implemented. see http://drupal.org/node/151180#comment-792120
regards,
massa
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.