Quote from: _michel_ at May 08, 2006, 10:20 AM
<div id="sub_menu">
[[DropMenu? &maxLevel=`1` &startDoc=[[UltimateParent]] &hereClass=`active_sub`]]
</div>
I was glad to find this because I’m in doubt that hiding submenus with help of some CSS is an accesible solution. Just turn off the CSS on modx-Website take a look at the main menu and you know what I mean. Yes, it is valid XHTML. But the menu-list is pretty long for screen readers an so on.
So I tried UltimateParent and also the above mentioned hack of DropMenu, to hide and show the submenus in a structure like this.
- item1
-- subitem1
- item2
-- subintem2
Well, when I clicked "item2" everything was all right. The menu looked like this.
- item1
- item2
-- subintem2
But when I clicked "item1" this happend:
- item1
- item2
-- subitem1
Hm. And the code isn’t far from perfect too - two lists but not nested.
Has anyone an idea?
Mazso