My chunk for innerTpl, looks like this
<ul[+wf.classes+]>[+wf.wrapper+]</ul>
How can I get the <ul> to have a class like levelclass (like level1,level2), I know you can use &innerClass=`innerclass` in the call but it just adds innerclass I need a number.
I tried adding [+wf.id+] to the ul but it does nothing.
help
[+wf.id+] should work... that is if you set the &rowIdPrefix parameter :
&rowIdPrefix
default: FALSE
values: name of prefix
description: If this parameter is set, Wayfinder will replace the placeholder [+wf.id+] with a unique id consisting of the specified prefix plus the document id.
example: &rowIdPrefix=`topMenu` will output the following for doc # 29: id="topMenu29"
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
I have set the &rowIdPrifix but it only works in the innerRowTpl with the <li></li> stuff
I want it in the innerTpl that wraps around the innterRowTpl I put the [+wf.id+] but it just wont show anything.
My bad wf.id is not available in the context of InnerTpl, I checked one of my websites indeed I used [tt][+wf.docid+][/tt] instead.
It will output the document’s ID.
I used it this way :
[tt]<ul class="item[+wf.docid+] [+wf.classnames+]">
[+wf.wrapper+]
</ul>[/tt]
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Oops sorry I misread I used it in InnerRowTpl and forgot to remove the wf.docid bit from my InnerTpl chunk
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
I can confirm that it didnt work on innerTpl, &levelClass won’t work on the innerTpl
So its not possible then?