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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nice_menus.module.patch | 865 bytes | taemon |
| Bildschirmfoto 2010-06-11 um 14.37.04.png | 16.05 KB | t0b1 |
Comments
Comment #1
t0b1 commentedsorry .. 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>Comment #2
add1sun commentedHm, yeah that's a bummer. Moving to active since there is no patch, but definitely something that needs to be addressed.
Comment #3
taemon commentedCreated a patch to test for depth before adding menuparent class.
Comment #4
add1sun commentedCommitted to HEAD.