We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5282
    • 147 Posts
    Hi !
    I’m using Wayfinder to generate my menus, but i would like to "split" the links generated by Wayfinder :
    for example, Wayfinder generates 10 links, but i would like to put the 1st five links somewhere in the html code, and the 5 others somewhere else in the html code
    ( all the generated links are the direct children of a given folder page, but in the menu of that folder page i need to distribute them in several groups for more clearness )

    i could have created subfolders for each of those groupes, and then call wayfinder multiple times on the folder page, but maybe there is a simpler way ...

    thanks
      i’m not a native english speaker, sorry if there are any mistakes ! smiley

      Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
      • 25663 MODX Staff
      • 12,272 Posts
      I don’t think Wayfinder will split results like this.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 5282
        • 147 Posts
        you mean wayfinder can’t do that ?
          i’m not a native english speaker, sorry if there are any mistakes ! smiley

          Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
          • 25663 MODX Staff
          • 12,272 Posts
          Not without multiple calls I don’t think so. Then again, I could be completely wrong.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7455
            • 2,204 Posts
            I think that you could use multiple calls and select what Id’s to include or exclude:

            &includeDocs
                default: 0
                values: [ comma-delimited list of document ids ]
                description: Acts as a filter and will limit the output to only the documents specified in this parameter. The startId is still required.
            &excludeDocs
                default: 0
                values: [ comma-delimited list of document ids ]
                description: Acts as a filter and will remove the documents specified in this parameter from the output. The startId is still required.
            

            this only works if the menu is not changing to often
              follow me on twitter: @dimmy01
              • 5282
              • 147 Posts
              yes but then i’d have to modify that page each time i add a subpage
              couldn’t i add a template variable to those subpages, for example the "group" tv, then in the wayfinderS calls i would add an "where group=n"
              ( i remember that in Ditto it was possible to test the values of tvs, does wayfinder also include this ? )

              thanks
                i’m not a native english speaker, sorry if there are any mistakes ! smiley

                Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
                • 25663 MODX Staff
                • 12,272 Posts
                Wayfinder and Ditto are different snippets. You might be able to do it with Ditto and a custom template.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 5282
                  • 147 Posts
                  then i’ll take a look at ditto,
                  by the way what are the exact differences between Ditto and Wayfinder ??
                  Ditto would be for blogs Wayfinder for pure menus, but as both have a template function and advanced configuration options, every menu/blog coded with one could be coded with the other, couldn’t it ?

                  thanks
                    i’m not a native english speaker, sorry if there are any mistakes ! smiley

                    Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Ditto doesn’t generate nested lists. You’d likely need a root Wayfinder call and a Ditto call to split the results.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 5282
                      • 147 Posts
                      Quote from: rthrash at May 08, 2007, 12:45 PM

                      Ditto doesn’t generate nested lists. You’d likely need a root Wayfinder call and a Ditto call to split the results.

                      ok, thanks again, cya
                        i’m not a native english speaker, sorry if there are any mistakes ! smiley

                        Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )