Hi everyone. I'm checking out MODX for the first time and I've hit a wall
The drop down menu I want to create is like so:
<ul>
<li><a href="#">first level</a>
<section>
<ul class="level2">
<li class="parent" ><a href="#">second level</a>
<ul class="level3">
<li><a href="#">third level</a></li>
</ul>
</li>
<li><a href="#">second level</a></li>
<li><a href="#">second level</a></li>
</ul>
</section>
</li>
</ul>
Note the single section element wrapping the second level list and its child list, and the "level_" class attribute on the ul elements.
My chunk looks like so:
[[Wayfinder?
&startId=`1`
&level=`3`
&outerTpl=`menuContainer`
&rowTpl=`menuRows`
&innerTpl=`innerContainer`
&innerClass=`level2`
&innerRowTpl=`submenuRows`
&parentRowTpl=`menuParent`
&parentClass=`parent`
&levelClass=`level
]]
Is there any technique to apply the &levelClass to ul, and not to each li elements?
Is there a way I can add the equivalent of innerTpl for a third level list?
This is probably due to my inexperience...I'd really appreciate some advice as to how MODX heads would approach building this style of dropdown. Thanks.
I've checked out these forums, and the PDF by Kongondo, and the examples at MuddyDogPaw. I can see how the Wayfinder works when the sublevel styles don't differ from level to level.