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

CommentFileSizeAuthor
#4 menu_view_submenu_admin_ui.png1.98 KBrroblik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rroblik’s picture

Issue summary: View changes
rroblik’s picture

Issue summary: View changes
rroblik’s picture

Issue summary: View changes
rroblik’s picture

Issue summary: View changes
FileSize
1.98 KB
shawnrosspeters’s picture

No answer? The asker posted in April 2014...

Anybody have a suggestion?

markhalliwell’s picture

Component: Code » Documentation
Category: Bug report » Support request
Status: Active » Closed (duplicate)
Issue tags: -tags, -structure
Related issues: +#1958154: Menu is wrapped in an extra unnecessary UL tag (i.e. so it is in <li><ul><li><ul>)