It’s pretty easy - it just requires a unique id and the class"menu" attached to it. If you want it ’collapsable’ you also add that class to it as well.
OuterTpl
<ul id="menu" class="menu collapsible">
[+wf.wrapper+]
</ul>
RowTpl
<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]</li>
InnerRowTpl
<li [+wf.classes+]><a href="[+wf.link+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
InnerTpl
parentTpl
<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
<ul id="doc_[+wf.docid+]" class="collapsible">[+wf.wrapper+]
</ul>
</li>
Or something like that - I’m not using it now because my menu was way to HUGE to have all items generated, but I did have it working.
To get the unique id, in your parent template you can use "doc_[+wf.docid+]" as above or [+classes+]/[+classnames+] and include &levelClass in your WF snippet call. Some one might have a better way of assigning classnames to the <ul> than that - but using the doc_id worked OK.