When i set up my nice menu block showing only first and second level and hiding all deeper childs, the menuparent css class will be set to all those menu-items which have hidden childs. this will result in layout problems due to shown arrows, indicating a submenu (which is not shown ).

For example:
I have this menu tree:

- Home
- About
- - Entertainment
- - - DJs
- - - VJs
- - - Dancers
- - Production
and so on.

now only first and second level should be shown, the childs DJs, VJs etc should be hidden.

The resulting code for "Entertainment" Item is:

But the menuparent class should not be added in this case, and the arrow for submenu-indication should be hidden. See attached image.

Comments

t0b1’s picture

sorry .. this is the code:

<li class="menu-1351 menuparent menu-path-taxonomy-term-24 odd "><a id="dhtml_menu-1351" title="Entertainment" href="/vibekingz/team/entertainment">Entertainment</a></li>

add1sun’s picture

Status: Needs work » Active

Hm, yeah that's a bummer. Moving to active since there is no patch, but definitely something that needs to be addressed.

taemon’s picture

Status: Active » Needs review
StatusFileSize
new865 bytes

Created a patch to test for depth before adding menuparent class.

add1sun’s picture

Status: Needs review » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -dropdown, -submenu hidden, -menuparent, -nicemenu

Automatically closed -- issue fixed for 2 weeks with no activity.