Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I can attach only one view to menu item. How to attach two or more views to one menu item?
I can attach only one view to menu item. How to attach two or more views to one menu item?
Comments
Comment #1
markhalliwellThat is not the scope of this module. You should probably use the views_field_view module if you want to attach multiple views to one.
Comment #3
markhalliwellComment #4
jmary CreditAttribution: jmary commentedIt seems that views_field_view is not taken in consideration in the module.
In the function menu_views_menu_link, the way to test the wrapping into
<li>
does not parse the code sent by the view but simply test if there is something inIt is appearing at line 79-81 in menu_views.module
Therefore a sub element is built only if it is a subelement in the drupal menu system, not in the generated view. That's how things seem to work here.
So it seems that there is no way to render correctly anything else than a view which is reflecting a flat menu. I have been on that during the past 3 days.
Comment #5
jmary CreditAttribution: jmary commentedSorry to reopen that, but it would be nice if the module could handle any view as long as it is feeded with a menu structure, and not only flat elements.
Think about a views spitting this :
It just doesn't behave well : it will put the whole block in one
<li>
element whereas the<li>
blocks should begin before the links which are not already in<li>
block and finish after the<ul>
blocks.Comment #6
markhalliwell