My WF call is like this :
[[Wayfinder?
&startId=`0` &level=`2`
&outerTpl=`menuOuter` &outerClass=`nav` &rowTpl=`menuRow`
&innerTpl=`menuInner` &innerRowTpl=`menuInnerRow`
]]
And now the templates used (sorry for the heavy code... it's the dropdowns fonction of Bootstrap...)
* menuOuter :
<ul[[+wf.classes]]>
[[+wf.wrapper]]
</ul>
* menuRow :
<li class="dropdown [[+wf.classnames]]"><a class="dropdown-toggle" id="label[[+wf.docid]]" role="button" data-toggle="dropdown" data-target="#" href="[[+wf.link]]">[[+wf.linktext]]<b class="caret"></b></a>
[[+wf.wrapper]]</li>
* menuInner :
<ul class="dropdown-menu [[+wf.classnames]]" role="menu" aria-labelledby="label[[+wf.docid]]">
[[+wf.wrapper]]
</ul>
* menuInnerRow :
<li[[+wf.classes]]><a href="[[+wf.link]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
The goal is to have on the result, the same
id="label23" (in menuRow) and
aria-labelledby="label23" (in menuInner). The number is for example.
The easy and logical way to do this should to use a WF placeholder like this :
... but it doesn't exist !!!
So I'm looking for an alternate way to have this result...
[ed. note: Spheerys last edited this post 13 years, 11 months ago.]