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.
This bug relates to a menu that has "Advanced->Add cloned parent links to the top of sub-menus" enabled. In this case, the superfish module is doing the "parent clone".
Both sf-Smallscreen and sf-Touchscreen plug-ins can also do "parent clone!" That's different and it works fine.
When the module is doing "parent clone", it sets the CSS classes incorrectly.
- sf-clone-parent is added to the items following a parent clone, rather than just the cloned item.
- last is added to the penultimate item rather than the last.
Comment | File | Size | Author |
---|---|---|---|
#2 | superfish.parent_clone.2747997-2.patch | 2.05 KB | AdamPS |
Comments
Comment #2
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedHere is a patch for review please.
The patch includes a test
['page_callback'] != 'drupal_not_found'
. This is an extra change to make superfish work with menu items created by Special menu items module. With this change, the menu is not cloned.Comment #3
jmoruziWorks for me, thanks.
Comment #5
mehrpadin CreditAttribution: mehrpadin commentedHey,
Thanks, please check.
Comment #7
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedGreat many thanks