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

    I have a set of documents contained within a container document. I would like a wayfinder call to be able to display the container AND all the children documents that sit within the container document... Is this possible? My container document is id 13 and so my current call is:
    [!Wayfinder? &startId=`13`  &level=`1` &outerClass=`bulletedlist` &rowClass=`LHSsubnav_Link` &rowTpl=`subnavwayfinderTemplate` !]
    This returns only the children documents from within the container doc id 13. How can I make it so that doc 13 is also listed in this wayfinder list - ideally at the top of the list?


    Cheers
      • 26931
      • 2,314 Posts
      Hi dubbs,

      try adding &displayStart=`true` to your call
        • 8168
        • 1,118 Posts
        Thanks Sharkbait - that does add it in yeh - but its not a live link or styled within the UL list the wayfinder call creates - is there anyway to make it work in the same way as the child documents? Am looking at styling it with the various templates that eht wiki suggests but it doesnt seem to work.... Any ideas?
          • 26931
          • 2,314 Posts
          use the &startItemTpl parameter

          around page 66 of the excellent wayfinder ebook wink http://modxcms.com/forums/index.php/topic,34176.0.html
            • 8168
            • 1,118 Posts
            This call displays the container item in the list.... But now all the children are missing...

             [!Wayfinder? &startId=`13`  &displayStart=`true` &level=`1` &outerClass=`bulletedlist` &rowClass=`LHSsubnav_Link` &rowTpl=`subnavwayfinderTemplate` &startItemTpl=`subnavContainerwayfinderTemplate` &firstClass=`LHSsubnav_Link` !]




            any ideas? I am using the same template as below to style the &rowTpl and &startItemTpl:

            <li class="LHSsubnav_Link"">» <a href="[+wf.link+]" title="[+wf.linktext+]">[+wf.linktext+]</a></li>
              • 8168
              • 1,118 Posts
              Thanks for the link sharkbait - Will have a look through - seems odd that my one will not work though? any ideas?
                • 26931
                • 2,314 Posts
                ...not sure

                try &level=`2` ...and you got a little typo: li class="LHSsubnav_Link"" -> li class="LHSsubnav_Link"
                  • 8168
                  • 1,118 Posts
                  Thanks sharkbait. Tweaked the typo ;]

                  making it go to 2 levels does nothing... Seems I am maybe trying to make it do something it does not want to do... :[
                    • 26931
                    • 2,314 Posts
                    I am using the same template as below to style the &rowTpl and &startItemTpl

                    you need to add [+wf.wrapper+] to your &startItemTpl
                      • 8168
                      • 1,118 Posts
                      Thanks - yep have that in already - it does kind of work, creates x2 UL lists... which is not really very ideal - visually does the trick... shame its not possible to get the container and all children docs together in one list together at the same level...