We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50923
    • 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.]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • [[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>
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org