We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    You can ignore them.
      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
      • 10576
      • 13 Posts
      Thanks for all your help guys, It finally helped me figured out what I needed to do. Whew!! You guys are a life saver!!
        • 22427
        • 793 Posts
        Thinking about a way to get rid of the unnecessary IDs of the submenu items, I saw that there is no parameter &outerRowTpl. Wayfinder is looking for the parameter&rowTpl, and if it is not given explicitly, it uses this chunk as default (Evo syntax):
        <li[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>
        Because it contains the [+wf.id+] placeholder, the menu worked anyway. But better change the parameter name.

        If you now prefer that the submenu items don't get the IDs, you use the parameter &innerRowTpl which overwrites the &rowTpl for those items. (Without an explicit &innerRowTpl, the &rowTpl is applied to them too.)

        Just leave out the [+wf.id+] placeholder in the chunk for &innerRowTpl:
        <li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>
        Naming this chunk, let's say, "li_inner", then the call
        [!Wayfinder? &startId=`2` &hideSubMenus=`1` &rowIdPrefix=`list` &rowTpl=`li_classes` &innerRowTpl=`li_inner`!]
        will result in a menu having IDs only for the first level items.

          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Each part of the menu can have its own mini-template, allowing for all kinds of menus to be built. I think I already posted a link to the page on my site that has several useful links for Wayfinder, including the most excellent "almost complete guide" and a handy cheatsheet.

            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