Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The Sub menu's auto expanded when on active page. on the other pages works fine, but when im in one of the sub pages, it is auto expanded. In the menu settings i even have it turned off as expanded by default. what am i missing?
thanks!
Comments
Comment #1
patoshi CreditAttribution: patoshi commentedduplicate of http://drupal.org/node/1125230
closing..
Comment #2
tomate2010 CreditAttribution: tomate2010 commentedsubscribe, same problem for me : I have a superfish menu with two sub levels. When one section is active the second level stays expanded . And the worst is that if I change the section, it stays expanded with the submenu of the section before, and stays like this whatever the section I choose.
It seems to be a cache problem, I'd like to disable only the cache menu but I don't know how to do that, and I'm afraid this will slow my site...
Thanks for helping !
Comment #3
patoshi CreditAttribution: patoshi commentedactually this problem was not solved. i did some looking around and it has something to do with the js that isnt being loaded properly.
So the problem is: Superfish menu is being expanded when on the active node.
screenshot of my sub pages loaded with the menu already expanded and shows that i tried to type in the superfish code manually and it does not get recognized.
http://prntscr.com/326vy
The reasoning why I say its a js problem is that you can manually put in the js code into the chrome console: (inspect element then press ESC)
type this in the console:
jQuery(function(){
jQuery('#superfish-1').superfish({
pathClass: 'active-trail',
animation: {opacity:'show',width:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: false});
});
and you'll see that it says method is not defined which basically means the superfish js wasnt loaded properly and im not sure wat to do now.
Comment #4
urban farmer CreditAttribution: urban farmer commentedWhat is your block setting for Path levels? I have a 3 level menu and I want the second level to stay expanded when a third level link is active, so I set path level to 1. If I set it to 0, it is not expanded at all.
Comment #5
patoshi CreditAttribution: patoshi commentedi have it set at 1 and it should work like yours but it doesnt.
screenshot: http://prntscr.com/32ao6
Comment #6
urban farmer CreditAttribution: urban farmer commentedMaybe it is a system or browser issue. I am still in the developing stage, working on a local server on a mac, using chrome and firefox. I hope to have it on a live server this afternoon, and will test on windows then.
Comment #7
patoshi CreditAttribution: patoshi commentedno its not i also tried on ie8 and other browsers. it does the same thing. after inspecting it through the console it something to do with loading the super fish js file.
Comment #8
tomate2010 CreditAttribution: tomate2010 commentedA solution that is still working on my site is to run cron and flush caches on a page that hasn't submenus items, like the front page. That avoids the display of the same submenu on all pages.
Comment #9
mehrpadin CreditAttribution: mehrpadin commentedHey there,
Sorry for the late reply, is there any chance I could see your sites? you can email me the URLs.
Comment #10
smscott CreditAttribution: smscott commentedIn the Superfish configuration for the menu, I changed the css class in the "Path class" to something other than the default "active-trail". Now the sub-menus close.
Comment #11
droddis CreditAttribution: droddis commentedI'mhaving the same issue.
Url is testingsite.roddiscomms.com
Fusion subtheme.
Can you let me know what you changed the path class to in order to resolve the issue?
Comment #12
thushad CreditAttribution: thushad commented#10 works for me. This happened when i try to enable "Take Expanded option into effect" on & then disable it again. I think the issue on my case is disabling the "Take Expanded into effect" option not working properly.
Comment #13
brownlo CreditAttribution: brownlo commented#10 Also works for me. What are the adverse effects of changing this?
Comment #14
mehrpadin CreditAttribution: mehrpadin commentedA) Quoting myself from another thread: "make sure Path level option is set to 1"
B) #10 makes active page highlighting in that SF block impossible.
C) The "Take Expanded option into effect" checkbox simply filters out menu items (together with their child items) which do not have the Expanded option checked in the Menu link edit page, nothing to do with the active or anything else.
Comment #15
mrogers CreditAttribution: mrogers commentedExperiencing this as well -- latest version of dev and master branch of superfish plugin. When on an active page, the associated menu item is expanded on page load. It can be closed by clicking anywhere on the page, and then acts normally.
Comment #16
bdombro CreditAttribution: bdombro commentedIt's a problem with active trail. I found that changing the version of my superfish library fixed it. I was running 1.9 of the Superfish module with the master branch of Superfish library. When I changed the library to the stable branch, the active trail worked.
Comment #17
jenniferannwalsh CreditAttribution: jenniferannwalsh commentedI changed 'active-trail' to 'active' and now it works properly and I still get the active page link highlighted appropriately.
Comment #18
prerak_14 CreditAttribution: prerak_14 commentedi am using superfish menu in drupal 7......problem that i facing is when i click on any menu child item then all menu child item expanded for a while (a second).... please provide solution for that..
Comment #19
kentjames1980 CreditAttribution: kentjames1980 commented#17 works for me, all menus still open and work fine but it closes on the active page, ^5 all
Comment #20
ivnish CreditAttribution: ivnish commented