Hi!
A few weeks ago I dived into Fusion. I'm implementing a design in a new subtheme and one the requirements of the designer is that the second level menu remains visible after clicking the menu item. I thought this would be a nice use case to implement the nav-bar style superfish menu. The nav-bar style works, however the second level keeps disappearing. Here's what I did:
Created a template.php in my sub theme folder and inserted the code listed on this page http://fusiondrupalthemes.com/support/theme-developers/special-features (heading "Changing the Superfish layout"). That worked perfectly!
For the second level menu, I tried to implement suggested on this page http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 where it is says to use the pathClass option of the superfish plugin. As indicated on your "special features" page, heading "changing the superfish parameters", I tried to implement the pathClass. I created a "script.js file" in the "js" folder of my new subtheme and added the following to the script js file:
Drupal.behaviors.mysubthemeSuperfish = function (context) {
$("#primary-menu ul.sf-navbar").superfish({
hoverClass: 'sfHover',
pathLevels: 2,
pathClass: 'expanded active-trail',
delay: 250,
animation: {opacity:'show',height:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: false,
disableHI: true
}).supposition();
};I changed the "fusion" reference to my subtheme in the function name, the div # into ul.sf-navbar and added the pathLevels and pathClass.
I have the feeling i'm close, but obviously missing something. I'm not complete sure which pathClass I should use or if the adjusted parameters are loaded. Could someone point me into the right direction?
Thank you in advance!
Sidney
