Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey Sun,
So I'm going to be using Superfish ( http://users.tpg.com.au/j_birch/plugins/superfish/ ) for Simplemenu soon.
If we use this as the first step to unifying our projects -- using the same CSS/JS for menu effects, we'll be most of the way there.
I imagine more and more releases and then we'll be able to merge the projects, how does that sound?
Comments
Comment #1
sunThanks for pointing me to superfish. I didn't know of that yet.
Regarding your request to use superfish for admin_menu, IMHO that's not a good idea. Here's why:
I tend to mark this as won't fix. It sounds more a like another rendering option for the already proposed Menu Rendering API. Do you agree?
Comment #2
joelbirch CreditAttribution: joelbirch commentedHi folks,
I created the Superfish plugin and wanted to add my comments to this thread. Specifically, in response to Sun's three points:
Superfish merely adds the script necessary to make IE hovers work, just as normal suckerfish does, and (while its at it) enhances the menus with optional animations, timed delays on mouseout (good for usability/accesibility) and keyboard access for browsers that support that.
If you wish to disable animations, simply override the 'speed' setting like this:
It's really a very simple and unobtrusive plugin. If you have any questions I am more than happy to answer them.
I hope this provides you with a bit more information to base your decisions on.
Joel Birch
Comment #3
sunThanks for the clarification, Joel.
Regarding 2): Although animation speed could be a user-configurable setting for Admin Menu, I don't understand the benefits we'd have by using SuperFish instead of SuckerFish if the default animation was disabled. Doesn't SuperFish act like ordinary SuckerFish DropDowns if there is no animation?
And just to get another opinion - Joel, a) are you using Admin Menu and b) voting for using SuperFish?
Comment #4
joelbirch CreditAttribution: joelbirch commentedI consider the animations the sugar on top for those who like that stuff (clients especially). The more useful benefits are to do with the improved accessibilty and usability of two of its other features:
I guess another reason to use Superfish over Suckerfish might be… why not if you already have jQuery included? Superfish is quite a light-weight plugin, and it basically is Suckerfish, except with added usability benefits.
To answer your other questions:
I hope this info is helpful.
Joel.
Comment #5
smk-ka CreditAttribution: smk-ka commented+1 for this feature alone. IMO a true usability improvement.
--
Stefan Kudwien
unleashed mind
Comment #6
okeedoak CreditAttribution: okeedoak commented+1 Timed delay on mouseout would be great.
Comment #7
sunok, it was quite easy to add superfish to admin_menu and the animations seem to work. However, although defined, the mouseout delay is not applied.
Drupal 5.x ships with jQuery 1.0.4. Even after upgrading to jQuery 1.1.2 there was no mouseout delay. Any other superfish (legacy) functions seemed to work fine with both versions.
Upgraded to current jQuery 1.2.1 then. Still no luck - whether using superfish oder legacy superfish.
To implement superfish, in
admin_menu_menu()
I addedand replaced admin_menu.js with the following code:
Comment #8
sunSorry, typo in the javascript code of last post:
Comment #9
jjeff CreditAttribution: jjeff commentedBummer. The delayed mouseout is a HUGE usability improvement.
Perhaps we can get Superfish in for the D6 version with the latest/greatest JQuery.
In the meantime, I wonder if there's a quick way to implement the mouseout delay without Superfish.
Comment #10
jjeff CreditAttribution: jjeff commentedI've created a patch to add the delayed menu functionality similar to Superfish. It works with the D5 versions of JQuery and you can find the issue here.
Comment #11
sunMouseout delay has been added through http://drupal.org/node/204935
As long as nobody steps up with a strong opinion, I don't think we need fancy animations or other features of superfish in admin_menu. Thus, I'm marking this issue as duplicate.
Feel free to re-open it.
Comment #12
patrickharris CreditAttribution: patrickharris commentedAdmin menu is great, but I really think it would be better using superfish. Not only are there some extra fancy options, but more importantly it can use the jQuery hoverIntent which to me is as great a ui improvement. I have adminmenu at the top of the page, and I'm constantly moving over it to get too and from the browser menus. Every time I move over it, adminmenu blasts up. HoverIntent fixes this problem.
Comment #13
sunSee #220100: Add support to detect hover intent (no dependencies added)
Comment #14
patrickharris CreditAttribution: patrickharris commentedOh - fantastic news! Not sure why I didn't spot that - thanks.
Comment #15
Michsk CreditAttribution: Michsk commentedCould someone please explain me how to get superfish implemented in the left navigation block... its driving me crazy.
Comment #16
pokadan CreditAttribution: pokadan commentedI'm willing to record a tutorial of how to integrate Superfish menus into a Drupal template. Leave a comment if interested.
Comment #17
saurabh.bhambry CreditAttribution: saurabh.bhambry commentedYa please............ that would be a big help poka_dan.
Comment #18
sher1 CreditAttribution: sher1 commentedI would love to see how this is easiest done. It would probably be nice to have that as a module
Comment #19
zauliant CreditAttribution: zauliant commentedHi, i am a newbie in drupal and web building, but it's such a good CMS.
My question is where i can found
$('.nav').superfish({speed:0});
Thanks for any respon :)
Comment #21
beto_beto CreditAttribution: beto_beto commentedhello
i am using the super-fish menu and work very well with me
but when i load and enter my website i think it take some time when it's loaded first then the website load it take time i don't know why can you pleas suggest me !!