add a parameter like &rowIdPrefix
add a new placeholder [+wf.id+] for the following templates: rowTpl,parentRowTpl,hereTpl,innerRowTpl,innerHereTpl
If the parameter is specified in the snippet call add the docid to the value from &rowIdPrefix and then insert it into the template.
Hi,
you have to specify wich prefix you wish to add
[...]
If you are using custom tpl don’t forget to add [+wf.id+] in your chunk
<li [+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
Of course, you have to rewrite your css

<li[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
<ul id="topnav"[+wf.classes+]>[+wf.wrapper+]</ul>
<ul[+wf.classes+]>[+wf.wrapper+]</ul>
<li[+wf.classes+]><span>[+wf.linktext+]</span>[+wf.wrapper+]</li>
[[Wayfinder? &startId=`0` &rowIdPrefix=`menu` &outerTpl=`wfOuter` &rowTpl=`wfRow` &innerTpl=`wfInner` &hereTpl=`wfHere`]]
From a webstandard point of view the wayfinder still includes a mistake which also is present in the dropmenu snippet. And that is the use of classes in the menu. It should be id. There can only be one item "you are here" and therefore it is semantic incorrect to use class . This is merely a suggenstion. For further reading. So generally the whole section with Class names to be assigned should be converted to ids or as i see it
Use classes when there are one or more occurences per page.
A class name may be shared by several element instances.Note "one or more" and "may be shared".
) that each menu tree should only contain unique items so the use of ID would be logical.This discussion is closed to further replies. Keep calm and carry on.