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.
Because the current version does not play well with the Menu Block module in that only a menu can be chosen, not a menu block, i request the feature to add at least the starting level as Superfish menu setting. Thanks
Comment | File | Size | Author |
---|---|---|---|
#16 | superfish-add-starting-level-1316254-15-D7.patch | 4.28 KB | sreher |
Comments
Comment #1
mehrpadin CreditAttribution: mehrpadin commentedHoi Yuri,
I guess you're using v1.8-beta2 .
Comment #2
Yuri CreditAttribution: Yuri commentedNo, I'm using the most recent version 1.8
If you refer to the "menu parent" selection box available in Superfish, that is something different than what I mean.
Menu Block uses "starting level" which works dynamically, it shows menu items if they are on the selected level or lower and the menu will show the items if they have the active_trail class.
This is different from the menu parent selection box which can only select one parent in one branch.
Comment #3
mehrpadin CreditAttribution: mehrpadin commentedOh! I got it, sure, added to my to-do list, thank you! really!
Comment #4
flatcircle CreditAttribution: flatcircle commentedI this already a feature in the latest version? (7.x-1.8)
Is it possible to not only set the menu depth but also the starting level?
Regards.
Comment #5
mehrpadin CreditAttribution: mehrpadin commentedHey,
Not yet, with 1.9-beta5 hopefully.
:)
Comment #6
sigurdur CreditAttribution: sigurdur commentedHi, I'm facing the same problem.
I'm using taxonomy, with Taxonomy Menu to split my site into sections, i.e. with the top level terms in a section menu at the top and then a split menu, using the same vocabulary, but level 2 and below for navigation in each section. This is possible with Menu Block, but I would prefer using Superfish. Any news on this?
Best regards,
Sigurdur
Comment #7
softone CreditAttribution: softone commentedHi.
It seems it's not yet included in 1.9-beta5.
This would be a very good and valuable addition to the Superfish features :-)
Regards.
Comment #8
shortspoken CreditAttribution: shortspoken commentedSubscribing +
Would be an awesome feature!
Cheers, Moritz
Comment #9
McGrathOS CreditAttribution: McGrathOS commentedSubscribing
Comment #10
rudetrue CreditAttribution: rudetrue commentedSubscribing
Comment #11
BartNijs CreditAttribution: BartNijs commentedSubscribing. Need this feature as well.
Any alternatives for now?
Comment #12
sherpadawan CreditAttribution: sherpadawan commentedI'm very sorry for this quick and dirty work, but hopefully it'll kickass somebody to do it. The thing is that menu block is great, is there any integration between both superfish and menu block ? Maybe the reflexion is higher level anyway ...
start level is : the level from the selected menu root level (pretty bad usecase coverage)
follow start level is : do you want to see the same thing in the block after clicking on a sublink (very bad usecase coverage as well since it does not show children in case)
that's why i'm wondering about a fusion with menu blocks code ...
here is my patch
Comment #13
BartNijs CreditAttribution: BartNijs commentedsherpadawan,
I added your patch to superfish.module and now it does take the start level into account and only appears if the parent menu item is selected. But I get no depth. The menu only shows items on the same level.
Example to illustrate:
When in a menu block the foo menu item is selected, the superfish block shows menu items A and B. But there's no submenus. The ul's below A and B are missing. When I click on A, the level 1 menu items disappear and make place for the level2 items. Thus showing K, L M and N.
I'm not a coder so I don't know where to start to resolve this issue. But for a first step your solution seems to be on the right path.
Comment #14
BlacKICEUAAny solution for this problem? I found work patch on other site, but not remember the website address.
Comment #15
BlacKICEUAI think, I found solution.
Thanks for sherpadawan!!!
This is my variant of patch:
Comment #16
sreher CreditAttribution: sreher for TIP Solutions commentedThanks BlacKICEUA.
I made a patch from this.
I try it and it works. :)
Comment #17
sreher CreditAttribution: sreher for TIP Solutions commentedComment #18
TipiT CreditAttribution: TipiT at TIP Solutions commentedPatch #16 works most of the cases but if I set:
1.) Menu starting level to 1 and
2.) Make the starting level follow the active menu item" setting is on
I get an error:
Strict warning: Only variables should be passed by reference in theme_superfish() (line 1810 of .../sites/all/modules/superfish/superfish.module).
Comment #19
TipiT CreditAttribution: TipiT at TIP Solutions commentedComment #20
quixxel CreditAttribution: quixxel commentedThe patch isn't working for me.
I'm getting the same error reported in #18 and the menu isn't starting on a defined level 1 or 2 or 3 ....
It would be very important for me to get the starting-level-feature.
Comment #21
BlacKICEUAI think that these lines are wrong: