Hi,

I have put my main menu with superfish in the menu block. I want to do the same like here: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4.
My second level always disappears when I click on an item, but I want see always the second level.

Can anyone help?

Regards Jan

Comments

knarzer77’s picture

ok, update:

I debugged a little bit with firebug. It looks like, that the active submenu doesn't get the "active-trail" class (it get only the "sf-depth-2 active" class).
I found, that the fusion theme had a simular problem. http://dtecht.blogspot.com/2011/01/superfish-menu-drupal-fusion-why-devi....

darksnow’s picture

I'm seeing this same problem.

Checking in Firebug on my setup, I'm also not seeing the active-trail being set.

One thing to add though. I have a menu entry added using taxonomy menu, which gives me the taxonomy terms as menu entries. This menu entry works perfectly and it also doesn't show the active-trail anywhere.

I've got:
Home
About
Contact
Articles
Type 1
Type 2
Forums
Forum 1
Forum 2
Blog

Articles is a taxonomy vocabulary. All the others have been added to the menu by me manually, expect "Contact".

If I click on any of the existing forums, then the Forums second level menu appears, similarly, with About and the Article Types. So far so good. But, if I click on "Forums" I'd expect the next level menu to show, but it doesn't. It's the same with Home. Interestingly, Contact doesn't work like all the other second level entries and clicking on either Home of Forums doesn't force their respective second level menus open.

So, looks to me like the advertised "Path Levels" option for the Navbar style simply doesn't work. Odd that it does for taxonomy menus though, they look no different in Firebug.

Jeff Burnz’s picture

Project: Corolla » Superfish Dropdown Menu
Version: 7.x-2.2 » 7.x-1.9-beta4

Gonna push this over to Superfish and see what Mehrpadin says about this, not a theme issue really, sounds like some issues with how the active classes are being applied, quite often this is not the module or theme but simply how you are building the menus and how the active trail is triggered.

darksnow’s picture

http://drupal.org/node/942782

I think this might have just been fixed for the next stable release of D7. I've applied the patch to my code and it solved the issue.

So, not a Superfish issue, but a core menu issue.

mehrpadin’s picture

Status: Active » Fixed

:)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

IdanC’s picture

darksnow, which patch did you use?

i've been trying to get a navbar superfish menu to work on fusion for a WHOLE DAY now, but can't seem to make it work.

anyone has any idea?

IdanC’s picture

here is an example of the problem - http://new.hallo.co.il/

notice that once you hover one of the menu items, the current submenu disappears.

unlike the example reffered to in the opening post.

darksnow’s picture

Actually, my fix isn't working either. I wrote custom code to keep the first menu option open if none of the other menus are in the active trail, but while I thought it worked, since I've added more options to the menu, it no longer does.

I plan to investigate this further as soon as I have the time, but my current theory is to ignore the active trail code and try and specifically affect superfish. If I come up with anything relevant, I'll let you know.

IdanC’s picture

well, i'm happy to inform you that the very talented sheena solved it -

#1479170: Incorrect syntax for inline jQuery usage

ataxia’s picture

I'm using the Fusion theme (Fusion-starter) and couldn't get the submenu to stay open. After much tribulation, I finally found this in fusion-style.css:

/* hide child menu items by default */
.region-main-menu ul.menu ul {
  display: none;
}

adding this to local.css fixed the problem:

/* DON'T hide child menu items by default */
.region-main-menu ul.menu ul {
  display: inline !important;
}