Hello,
I’m trying to do a small hack with the wayfinder.
My target is to set a ul.class only by the page ID’s of 2,3,4 and 5.
I did this before I used the modx like this:
<ul <?php echo ($ID == '2')?'class="space"':"";?> class="main">
My current WF code is:
<div id="subnav">[[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`3`]]` &outerTpl=`menuContainer` &outerClass=`nav_space`]]
</div>
I would like to set the outerClass by pageID=2 &outerClass=`nav_space2`| pageID=3 &outerClass=`nav_space3`and so on.
all the best
Carol