Howdy,
How do I get wayfinder to include class="first" as well as "active" and "last"?
I am using:
MODx version - 1.0.0
Version codename - rev 5601
Wayfinder - 2.0
[[Wayfinder? &startId=`0` &level=`0` &outerTpl=`menu wrapper` &rowTpl=`menu row` &titleOfLinks=`menutitle` &excludeDocs=`1,8,9,10,11`]]
<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>
I'd like it to look like this, rather than having to do [+wf.docid+] (code bloat for a simple list) to hide a background image on the first element - and what if the menu order changes, and the existing first element is moved??
<ul>
<li class="first"><a href="#" title="blah">Blah</a></li>
<li><a href="#" title="blah">Blah</a></li>
<li class="active"><a href="#" title="blah">Blah</a></li>
<li><a href="#" title="blah">Blah</a></li>
<li><a href="#" title="blah">Blah</a></li>
<li class="last"><a href="#" title="blah">Blah</a></li>
</ul>
Thanks in advance.