-
- 137 Posts
I know that many post are made of Wyafinder submenu, but i have still problem to understand.
Is it possible that someone help me to create tpl for following HTML
Thanks in advance
<ul class="menu sub-menu" id="menu-menu" style="margin-left: 0px; left: 0%;">
<li class="current-menu-item current_page_item ">
<a href="index.html">Naslovna</a>
</li>
<li>
<a href="#">O nama</a>
</li>
<li>
<a href="#">Usluge</a>
<ul class="sub-menu">
<li><a href="#">Kartice</a></li>
</ul>
</li>
<li>
<a href="#">Cenovnik</a>
</li>
<li><a href="#">Kontakt</a></li>
</ul>
<a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
You'll need to use the outerTpl to get the outer level UL with the ID you want. You can use outerClass and innerClass properties to set the classnames for the outer level UL tag and inner level UL tags. Use the hereClass and/or selfClass properties for the current classes.
[ed. note: sottwell last edited this post 8 years, 4 months ago.]
[[Wayfinder?
&startId=`42`
&outerClass=`menu sub-menu`
&outerTpl=`outerTplChunk`
&innerClass=`sub-menu`
&hereClass=`current-menu-item current_page_item`
]]
And the outerTplChunk...
<ul[[+wf.classes]] id="menu-menu">[[+wf.wrapper]]</ul>