Hi,
Good module even if it was hard to make it work with Bootstrap
theme ...
I have a question, I have read several posts about it but I didn't find real answer :
Here is what i do :
I add a main menu item via view (type : page) and checked "create menu item" ; parent menu item is working fine.
I created another display in that view, as block, to become the children of the created parent item menu (so : a submenu)
I go to main menu admin page and create a new link, as view (via menu views module) ; pointing to my view with block display. (image joined)
Validating.
I expected :
<ul id="main-nav">
<li><a>Parent item</a>
<ul class="menu-view-output">
<li>Children</li>
<li>Children 2</li>
<li>...</li>
</ul>
</li>
</ul>
I have (menu views) view wrapped inside one <li>
tag,
<ul id="main-nav">
<li><a>Parent item</a>
<ul>
<li>
view ouput here (<ul><li>Children</li>...</ul> or what I want, set in template)
</li>
</ul>
</li>
</ul>
Module use hook_menu_link
, in line 80 we can see
return '<li' . drupal_attributes($variables['element']['#attributes']) . '>' . $view . $sub_menu . "</li>\n";
here there is no subview (the view itself IS the subview) but there is the <em><li></em>
tag ...
Does I have to use custom template hook_menu_link
? Or another preprocessor ?
Thanks for answers
Comment | File | Size | Author |
---|---|---|---|
#4 | menu_view_submenu_admin_ui.png | 1.98 KB | rroblik |
Comments
Comment #1
rroblik CreditAttribution: rroblik commentedComment #2
rroblik CreditAttribution: rroblik commentedComment #3
rroblik CreditAttribution: rroblik commentedComment #4
rroblik CreditAttribution: rroblik commentedComment #5
shawnrosspeters CreditAttribution: shawnrosspeters commentedNo answer? The asker posted in April 2014...
Anybody have a suggestion?
Comment #6
markhalliwell