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.
In D7 all of the processing can be handled in template_preprocess_page, and just append the necessary DOM structures directly to the menu links. This would resolve #1758866: minipanel should not be displayed in the breadcrumb and probably some other issues.
Comment | File | Size | Author |
---|---|---|---|
#2 | menu_minipanels-n1902378-2-d7.patch | 5.85 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaAfter some testing, this will *only* work when using the primary or secondary menus output using the theme options, it won't work when displaying the menus in a block. Bummer.
Comment #2
DamienMcKennaInitial patch, needs some work to clean up everything and there's a major problem that menu blocks don't work anymore...
Comment #3
DamienMcKennaAlso, this will be for D7 only, there's no way of doing this in D6 :-\
Comment #4
DamienMcKennaThinking on it further, there should be an option on which method to use, which wouldn't require a whole new branch.
Comment #5
DamienMcKennaI think the best approach would be to add this as a new feature in v2, along with #1253432: Upgrade to qTip v2.
Comment #6
DamienMcKennaThis is part of my plans for v2: #1957640: Plan for a Menu_MiniPanels v2.0 release
Comment #7
jwilson3FWIW, if we abandon qTip and opt for placing the mega-menus directly inside the menu tree itself, then preprocess_page is no longer needed.
Comment #8
DamienMcKennaThere needs to be a setting to control which mechanism is used, so that existing sites aren't broken.