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.
I set Maximum number of menu levels to display to 2, but superfish menu still show them all.
How to fix this? or it's my setting wrong?
Comment | File | Size | Author |
---|---|---|---|
#4 | 2729165-superfish-max-depth.patch | 1.22 KB | edb |
Comments
Comment #2
lilee CreditAttribution: lilee commentedComment #3
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedI had the same problem at first, but you can use one of Superfish' own settings to solve that.
Open the Superfish menu block from admin/structure/block and open the Advanced Settings section in the configuration form. Inside the Superfish section you'll find a Path Levels dropdown. Change this according to your needs and it should work.
I'm not sure if that's the best solution, as the default settings should be taken into account too, but for new it works (for me).
Comment #4
edb CreditAttribution: edb as a volunteer commentedThe issue here is the expand tree method does not use the maximum depth setting, it just expands all children recursively. I have patched it and it looks to be working fine now. Please review.
Comment #5
Jonah Fenn CreditAttribution: Jonah Fenn commentedTested patch on rc4 and it worked great. Thanks!
Comment #7
DuaelFrThis patch has been commited.
(I'm just cleaning the issue queue)