Drupal 7 using the latest -dev version of both Drupal and DHTML Menu on two different sites the menu closes when navigating to a new page. I tried switching themes, uninstalling + reinstalling, but it just won't stay open. I love the module it does everything I want and I am probably doing something wrong any help would be appreciated. If it helps the site url http://jocosjewelry.com and its enabled on the category menu. It is not a taxonomy menu.

CommentFileSizeAuthor
#29 config-dhtml.jpg65.44 KBChimos
#29 menu-screenshot.jpg34.14 KBChimos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gibbet’s picture

Having the same problem, menu is never expanded when moving from one page to another... Guessing its just some D7 teething - hope there's a fix soon!

joostvdl’s picture

Has his something to do with Active Menu Trails maybe?

FreeFox’s picture

Same here ... subscribing

joostvdl’s picture

I've used: http://drupal.org/project/menu_position to connect a content type to menu. After that it keeps the menu leaf open and sets it to the active-trail

Jean Gionet’s picture

I'm experiencing the same issue. Once I click the link to a page it loses where it was in the menu!

rianasf’s picture

Could you please elaborate: which of D6 or D7 do you have? And how exactly did you setup the Menu Position module?

On D7 and with a custom menu in the right sidebar, still cannot keep the menu expanded upon landing on desired page and installing Menu position.

marcoka’s picture

same problem here, must be something with the cookie function

Peasoup’s picture

subscribe

My setup:

D7

DHTML Menu latest dev version

Static navigation: Doubleclick
Animation:
Effects: Slide in vertically + Fade in
Speed: Fast(0,5s)

Other Effects:
When a menu opens:
Close other open menus in the same tree.
When a menu closes:
Remember which sub-items were expanded when it next opens.
When a new page is loaded:
Expand only the currently active path. (Unable to set AND SAVE this setting to "Remember which items were expanded on the last page.")

No Disabling

NotNotCow’s picture

Same problem here:) Subscribed!

marcoka’s picture

i opened some threads with suggestions and pattches. its now working for me here. and set the keep open option in the settings

http://screensnapr.com/v/IthUkx.png

Peasoup’s picture

@e-anima
Everytime I set the "keep open" setting aka ""Rmember which items were expanded on the last page", and click save, the setting jumps back to "Expand only the currently active path" right away.
What are your other settings?
Would you please link to your threads with suggestions and patches?

Thank you!

marcoka’s picture

my menu looks like this: http://screensnapr.com/v/mFCUJv.png
settings: http://screensnapr.com/v/oAKq2O.png

search for my name in the issue queue to see the patches.

Peasoup’s picture

Hey,

thanks for the fast reply.
I tried your settings (just varied in the static navigation-section, as far as I can tell from your screenshot), but I still can't switch to "Remember which items were expanded on the last page".

I also tried to search for your name in DHTMLs issues but only found this entry again. Searching for your name on the whole drupal site gives a few results too much ^^ So what exactly do you mean by issue queue, if not DHTMLs issues?

Thank you.

edit: it keeps at least the more uppe levels open, but the level I'm in is still closed on page load, e.g. I navigate to
2.
- 2.1.
-- 2.1.1.

click on a page, the menue resides with
2.
- 2.1.

(And I would really prefer NOT to use the icons oO)

marcoka’s picture

uhm. you click advanced search and type in participant
like: http://screensnapr.com/v/d0VIQk.png

Peasoup’s picture

Found it :) Thanks.
Unfortunately no change after patching..

straszko’s picture

same issue...

straszko’s picture

@ThinkPodDsgn i could see that on your site http://jocosjewelry.com your category menu is working fine. Did you use D7 or D6? How did you resolve the collapsing issue?

Regards.

marcoka’s picture

i discovered an issue with my solution too, somehow sometimes some markup is lost, when i flush the cache multiple times its back.
this needs some serious work.

straszko’s picture

i've just found out that under Drupal 7.2 (fresh install) this module is working well (at least it seems so...)
however v. 7.2 is not recommended for use due to some security issues...

straszko’s picture

...unfortunately it's not working well.. it seems to be ok only for primary links menu? but when i want it apply to a custom menu then reloading page makes my custom menu collapse...

JurgenR’s picture

Any updates on this?

I'm using 7.x-1.0-beta1 version of DHTML_menu on Drupal 7.7.
On the configuration page I can't save the option 'Remember which items were expanded on the last page'.
It jumps back to 'Expand only the currently active path'.
(When a new page is loaded)

Want to use this module on custom menu.

pp’s picture

JurgenR: I tried beta1 and I saw your problem. Next I used the HEAD and I saw the configuration page work well. (http://drupalcode.org/project/dhtml_menu.git/commit/721a9dd)

jonn59’s picture

Same problem here, Subscribed

alexhelkar’s picture

Subscribing

Peasoup’s picture

Category: bug » support

Sorry, double post..

Peasoup’s picture

Category: support » bug

Any improvements on this? There is no new version out and this feature is kinda important for a smooth user experience. Is there anyone, getting that to work?

Thanks.

Peasoup’s picture

Category: support » bug

Okay, so I need this to be working, and although I have no clue about writing modules for drupal, I'll give it a shoot. All I wanna know, is there anybody who can confirm, that the "remember which items were expanded on the last page" worked at any time? If so, please tell me ALL your settings in dhtml menu.
Thanks.

Peasoup’s picture

Oh, and what I found so far, if you go to dhtml_menu_admin. inc and set "remember" to 1 in line 96, and set the default value to 1 as well, you're at least able to select that radio button.. It still doesn't do anything though..

Chimos’s picture

FileSize
34.14 KB
65.44 KB

I have the same problem with Drupal 7.9, and a partial solution or a clue!!!

If I choose "Keep other menus open" (in "DHTML configuration", in section "Other Effects") -> The menu keeps open after page load (this make no sense, because here we are setting the behavoir when expanding other menus, not when loading, but it works so for me).
Before I had here "When a menu opens: Close other open menus in the same tree" -> This is PROBLEMATIC

1.- This is not a total solution, because obviously there is some error with the configuration.
2.- Probably we dont want all the menu trees to keep open, and we are forced to.
3.- We still can't choose "Remember which items were expanded on the last page".

But maybe helps! (I attach images of my config too)

xbrianx’s picture

I have the same issue in 7.9

Summit’s picture

May be http://drupal.org/node/1347424 related?
Greetings, Martijn

Thelrin’s picture

Same problem in 7.9. Subscribing.

ali_b’s picture

+1

xbrianx’s picture

Same problem

phoang’s picture

Priority: Normal » Major

Same issue...wish that the maintainer can fix it ASAP

bamban’s picture

same here

I wonder if someone has found any solution about that?

alexhelkar’s picture

I wrote a custom solution for me in jQuery. I have one DHTML menu on my D7 site, and such setting:

  • Static navigation - No Collapsing: Menu items cannot be collapsed dynamically. Instead, clicking on an already expanded item will take you to the page.
  • When a menu opens - Close other open menus in the same tree.
  • When a menu closes - Remember which sub-items were expanded when it next opens.
  • When a new page is loaded - Expand only the currently active path.

You can write your css selector for your menu into variable 'menu_selector', and maybe it will work for you.

jQuery(document).ready(function($) {
	var menu_selector = "div.block-menu .active";
	$(menu_selector).parents("ul")
							.addClass("expanded")
							.addClass("dhtml-menu-open")
							.removeClass("collapsed")
							.show(500)
							.end()
							.parents("li.collapsed")
							.removeClass("colapsed")
							.addClass("expanded")
							.end()
							.closest("li")
							.removeClass("expanded")
});
bamban’s picture

Great It worked! Thanks

Gauntlet-1’s picture

Re: #37

I put this code where, exactly?

alexhelkar’s picture

Create a javascript file and put that code into it. Then connect this file to your theme in YOURTHEME.info file.

ThinkPodDsgn’s picture

The problem is not with the DHTML Menu module but that Drupal 7 does not assign an active trail to a custom menu. The fix is to patch the actual Drupal core menu module with the patch in post #262 from http://drupal.org/node/942782.

ckng’s picture

Agree with #41, tested and confirm is related to #942782: Custom menus never receive an active trail.

Update: The same patch is causing menu block with 1 level not displaying, using menu_block (need patches from #1017122: Core bug work-around: add active trail to custom menus and #1393204: Remove the workaround for active trails core bug, now that it's fixed in -dev.

Drupalitta’s picture

Agree with #41 and #42 - the comment #262 works. Just patched mine. Works like a charm : )

pacome’s picture

Same issue for me, if i set "Remember which items were expanded on the last page." on dhtml menu and save the settings, it stays on "Expand only the currently active path."...

I'm using drupal 7.14 and dhtmlmenu 7.x-1.0-beta1