We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14623
    • 2 Posts
    Hello,

    I am new to Wayfinder and am having trouble getting it to output my menu like this:


    <ul id="mainlevel-nav">
    <li><a href="#" class="mainlevel-nav" >News</a></li>
    <li><a href="#" class="mainlevel-nav" >Blog</a></li>
    </ul>

    Have done some research and have written these but it doesn’t quite turn out how I need undecided

    [!Wayfinder?startId=`0` &outerTpl=`my.OuterTpl`! &rowTpl=`my.InnerRowTpl`!]

    //my.OuterTp
    <ul id="mainlevel-nav">
    [+wf.wrapper+]
    </ul>

    //my.InnerTpl
    <li[+wf.classes+]>
    <a href="[+wf.link+]" class="mainlevel-nav"></a>
    </li>

    Any pointers where I am going wrong would be appreciated smiley
      • 4310
      • 2,310 Posts
      <li><a href="[+wf.link+]" title="[+wf.title+]" class="mainlevel-nav">[+wf.linktext+]</a></li>

      For the my.InnerRowTpl this should match your example
        • 14623
        • 2 Posts
        Thanks very much for your help

        Managed to get it working after I noticed I was trying to call ’my.InnerRowTpl` instead of ’my.InnerTpl’

        laugh
          • 4310
          • 2,310 Posts
          rolleyes We’ve all done that.