I've activated the activemenus in my 4.7 drupal instalation but it dosn't behave as expected. I'm in the navigation block. When i click on the icon of a currently expanded menu item it can collapse and expande again as expected. Now if i try the same with a collapsed item it expands for a moment to show the loading message but then the message disapears without loading the submenu items.
The generated html source shows me the expanded class for the list item and a opening and closing ul tag in the list item so something is trying to happen i guess but the submenu is not getting loaded. If i click on the text hyperlink of a list item instead of the icon the submenu loads and expandes correctly but with that old anoying pagerefresh.
One thing i noticed or maybe just don't understand by looking through the code are some references to class attributes that i just can't find in the normal either the generated html source. A class called "block-menu" that does not exist in the html output and a class called "activemenu" neither. Because the script seams to refer to these classes but i can't see them in the html output maybe that causes this issue.
By the way i realy like this module and hope of getting fast response to get it working for everyone.
Comments
Comment #1
ak commentedComment #2
Egon Bianchet commentedIt happens to me too
Comment #3
Egon Bianchet commentedPut an
alert(string)insidejsAM.prototype.receive. Looks likeactivemenu_js()is passing an empty array to the js.Comment #4
Egon Bianchet commentedFurther investigation reveals that
href = href.substring(path.full.length, href.length);mangles the url, so that it's passed likee/addto the callback page.Btw, I'm using Drupal in a subdirectory, with clean urls like http://localhost/drupal
Comment #5
ak commentednow that you're saying it my drupal is although in a subdirectory with clean url's. your point out seams to be the right direction. i'm quit bussy at the moment but i'll further check this asap.
Comment #6
nedjoActivemenus doesn't yet work with clean urls. I'm working on a fix.
Comment #7
nedjoComment #8
janv@www.drupalsites.net commentedI have the same problem. I'm also using clean urls and the site is in a subdirectory as well.
Comment #9
nedjoI committed changes yesterday aimed (among other things) at getting this working. Please download a fresh copy. Note that there is now a dependency on the new jstools.module, which you will have to enable. Please report back as to whether this fixes the issue. Thanks.
Comment #10
Egon Bianchet commentedThe changes in CVS fix this for me.
Comment #11
janv@www.drupalsites.net commentedNow some menu's work, but other's don't. It doesn't work for menu-items pointing to book pages.
Thank you for working on this.
Comment #12
nedjoNote that activemenus don't as yet attach to all menus, only those created by menu.module and the user.module navigation menu.
If you wish, please open a new feature request issue.
Comment #13
mojobaer commentedCan someone explain what it means to say activemenus only work for menus created by menu.module and user.menu.module?
I've installed jstools and activemenus and enabled them. Has not changed the behavior of my multi-level menus. Is there something else I need to do? I'm mostly using them in the Navigation block for the Admin functions at the moment, although they are not working for a menu structure that I defined as well with the admin functions.
Thanks!
Comment #14
(not verified) commented