Does anyone happen to know an easy way to make the top level of the Wayfinder navigation have a unique class for each item? The following is an example of what I’m trying to accomplish:
<ul>
<li class="n1">Link</li>
<li class="n2">Link</li>
<li class="n3">Link</li>
<li class="n4">Link
<ul>
<li>Link</li>
<li>Link</li>
</ul>
</li>
</ul>
Any ideas? Thanks much.
In your rowTpl you could use [+wf.docid+]. That way each one would have a unique class name based on its unqiue document ID.
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
I tried it, and it appears to be working great, except that &parentRowTpl only works on folders/containers, and I have some weblinks and single documents in the main nav.
I tried using &rowTpl, but that gave every list item a class, which I suppose isn’t the end of the world, just unnecessary.
Or I could just make all of the main nav documents containers, but they won’t have any sub links. Any suggestions?
Thanks for the help btw
Thanks everyone, I think both suggestions work great depending on the menu design.