Hi community
I wouldlike to create a menu in a different color for each category.
My strucutre:
root
Balcony
submenu 1
subsub 2
subsub 2
...
submenu 2
Roof
submenu 1
subsub 2
subsub 2
...
submenu 2
...
Street
...
so my goal is to have different colors for the different main categories (roof, balcony, street) and all it’s children.
the easiest thing would be to alter the outerTpl and add a <div class="red"><ul>[[+wf.wrapper]]</ul></div>, unfortunately it only adds this line once on the root level. so i can’t assign multiple colors.
my actual Wayfinder call looks like this: [[!Wayfinder? &startId=`[[!UltimateParent]]` &hideSubMenus=`true` &parentClass=`hide` &hereClass=`current` &selfClass=`iamactive` &level=`3`]]
now the outputted code looks like this:
<div class="subnavi-holder">
<ul>
<li class="first hide current">
<a href="topcategory/balcony/">Balcony</a>
<ul>
<li class="first current iamactive">
<a href="balance.html">Balance</a>
</li>
<li>
<a href="topcategory/balcony/flexible.html">flexible</a>
</li>
<li class="last hide">
<a href="topcategory/balcony/objects/">objects</a>
</li>
</ul>
</li>
<li class="hide"><a href="topcategory/roof/">roof</a></li>
<li class="last hide"><a href="topcategory/special/">Special</a></li>
</ul>
</div>
and it should look like this:
<div class="subnavi-holder-red">
<ul>
<li class="first hide current">
<a href="topcategory/balcony/">Balcony</a>
<ul>
<li class="first current iamactive">
<a href="balance.html">Balance</a>
</li>
<li>
<a href="topcategory/balcony/flexible.html">flexible</a>
</li>
<li class="last hide">
<a href="topcategory/balcony/objects/">objects</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="subnavi-holder-blue">
<ul>
<li class="hide"><a href="topcategory/roof/">roof</a></li>
</ul>
</div>
<div class="subnavi-holder-green">
<ul>
<li class="last hide"><a href="topcategory/special/">Special</a></li>
</ul>
</div>
I hope there is an easy option with the tpl’s do realise the colored menu.
I played around with all kinds of TPL’s and variations, but I just did not come to a success.
So I hope that someone can give me a hint, to get me back on track...
thank you
cheers