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

    What is the parameter for to define a comma delimited list of documents to include in the navigation? I believe in Evo this was &documents=`123,456,789` but can’t find anything in the revo documentation.

    Thanks!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      &includeDocs; it’s Ditto that uses &documents.
        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
        • 11858
        • 130 Posts
        Thanks Susan, but it doesn’t work. This is my call:

        [[Wayfinder? &includeDocs=`1,476,453,491,492` &ignoreHidden=`true` &level=`1`  ]]
        


        Am I missing something?
          • 3749
          • 24,544 Posts
          You may still need a &startID property, even though the results will be limited by &includeDocs.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 11858
            • 130 Posts
            my call is now

            [[Wayfinder? &startId=`0` &level=`0` &ignoreHidden=`true` &includeDocs=`1,476,453,491,492` ]]


            It displays the document at 1 (the homepage) but none of the other pages...
              • 11858
              • 130 Posts
              modified it to

              [[Wayfinder? &startId=`0` &level=`0` &ignoreHidden=`true` &includeDocs=`1,429,476,453,491,492` ]]]


              429 is the id of the parent of 476,453,491,492 and it displays:

              <ul>
              <li class="first"><a href="http://www.site.com/" title="100 mile, 50 mile ultramarathons and marathons on the North Downs Way and Thames Path - United Kingdom" >home</a></li> 
              <li class="last active"><a href="live-test/" title="Live" >Live</a>
              <ul>
              <li class="first active"><a href="live-test/live-aid-station-activity" >LIVE - Aid Station Activity</a></li> 
              <li><a href="live-test/live-ndw100">LIVE - NDW100 2011 Ultramarathon</a></li> 
              <li><a href="live-test/live-ndw50">LIVE - NDW50 2011 Ultramarathon</a></li> 
              <li class="last"><a href="live-test/live-ndw-marathon">LIVE - NDW26.2 2011 Marathon</a></li> 
              </ul></li> 
              </ul> 
              
              


              so it’s got an unwanted <ul> in there.

              If I try to exclude the 429 document I dont want:

              [[Wayfinder? &startId=`0` &level=`0` &ignoreHidden=`true` &includeDocs=`1,429,476,453,491,492` &excludeDocs=`429` ]]


              It only displays 1 again, the homepage.
                • 3749
                • 24,544 Posts
                Try

                &startId=`429` &showStart=`0`
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 22427
                  • 793 Posts
                  &showStart=`0`
                  I think that should be
                  &displayStart=`0`

                    • 11858
                    • 130 Posts
                    I have tried:

                    [[Wayfinder? &startId=`429` &showStart=`0` &level=`0` &ignoreHidden=`true` &includeDocs=`1,476,453,491,492` ]]


                    and

                    [[Wayfinder? &startId=`429` &displayStart=`0` &level=`0` &ignoreHidden=`true` &includeDocs=`1,429,476,453,491,492` ]]


                    and now it’s missing the homepage(1), it’s only showing 476,453,491,492 in both circumstances.
                      • 11858
                      • 130 Posts
                      instead of trying to bash Wayfinder into submission, this maybe should be a job for getResources? a get resources tpl:

                      
                      <li><a href="[[+[[~id]]]]">[[+pagetitle]]</a></li>
                      
                       


                      edit: job done with getResources. Thanks for your help all.