We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39583
    • 103 Posts
    I'm trying to use wayfinder get my menu but it only gets the first level of menu entries.

    This is what I call to get the menu:

              [[!Wayfinder? 
                    &startId=`0`
                    &outerTpl=`menuOuter`
                    &innerTpl=`menuInner` 
                    &rowTpl=`menuRow` 
                    &innerRowTpl=`menuInnerRow`
                ]]


    menuOuter chunk:
    <ul class="nav">[[+wf.wrapper]]</ul>


    menuRow chunk:
    <li><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a></li>


    menuInner chunk:
    <ul class="dropdown-menu">[[+wf.wrapper]]</ul>


    menuInnerRow:
    <li><a href="[[+wf.link]]">[[+wf.linktext]]</a></li>


    I have no idea why this isnt working. Any suggestions?

    Thanks
    André

    This question has been answered by sottwell. See the first response.

    [ed. note: phacer last edited this post 14 years ago.]
      --
      André
    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You are forgetting to add the +wf.wrapper placeholder in your row chunks.
      <li><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>

      <li><a href="[[+wf.link]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
        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
        • 39583
        • 103 Posts
        That did it!

        Thanks!
          --
          André