We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28755
    • 30 Posts
    There is a way to display with wayfinder only a specific number of link, like with the &total parameter of ditto?

    And to start to display link beginning from the, for exemple, 5th link, like the &start parameter in ditto?

    Thanks in advance
      • 15987
      • 786 Posts
      there is the &limit parameter which will make Wayfinder return the specified number of documents for each level of output.
        • 28755
        • 30 Posts
        And there is a way to have the same effect of the &start parameters..

        Neither with modification to the snippet?

        Thanks
          • 15987
          • 786 Posts
          the &start ditto functionality is not included in Wayfinder and would require some hacking to get inplemented.
            • 28755
            • 30 Posts
            How can i implement? Any advice?
              • 15987
              • 786 Posts
              try this:

              change line 92 of wayfinder.inc.php to this:

              $sqlLimit = ' LIMIT ' . $this->startOffset . ', ' . $this->limit;
              


              then in the snippet code add this line after the comment //parameter overides

              $wf->startOffset = isset($startOffset)? $startOffset: 0;
              


              then in your snippet call use &startOffset=``
                • 28755
                • 30 Posts
                I’ll try!

                Thanks!! grin
                  • 28755
                  • 30 Posts
                  Cool!!! It works great!!

                  Thanks