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.
does anybody try or find how to use superfish with Menu Block
thank
does anybody try or find how to use superfish with Menu Block
thank
Comments
Comment #1
JohnAlbinThe docs for superfish are here: http://users.tpg.com.au/j_birch/plugins/superfish/
You need to use the "expand children" option of Menu block.
Then just use an appropriate jquery selector. Something like…
I haven’t tried it myself, but it seems straight forward.
Comment #2
pfx CreditAttribution: pfx commentedYes It works but for items menu inside the same block (with unselect expand all children).
What I would able to do is that item menu in the 1st level (primary) block enable an automatic open the 2nd level (secondary) block with child item menu.
Thank John
Comment #4
gmclelland CreditAttribution: gmclelland commentedHow would you add the class "sf-menu" or class "sf-vertical" to a menu_block's UL?
For vertical menus see:
http://users.tpg.com.au/j_birch/plugins/superfish/#sample3
Is there so kind of theme override where I can add these classes?
Thanks for you help
Comment #5
gmclelland CreditAttribution: gmclelland commentedOk nevermind, I got it. For others interested.
go into includes/menu.inc
copy the theme_menu_tree function into your template.php and rename it yourthemename_menu_tree
then follow the documentation for menu block
so in my case it was
Clear your theme registry and your good to go.