We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51315
    • 67 Posts
    I tried the solution You suggested.

    [[pdoNeighbors?
        &sortby=`menuindex`
        &sortdir=`asc`
        &tplPrev=`tplPrev`
        &tplUp=`tplUp`
        &tplNext=`tplNext`
        &resources=`[[stripLoners?]]`
    ]]


    In your post, You just omitted the "?" in the snippet call, otherwise it works.
    Next step could be telling pdoNeighbors to not show prev button even when the page you are visiting is the first of a group of siblings.
    Trying to figure it out.

    Thanks!
      • 32507
      • 142 Posts
      Yes. Working for me anyway?
        • 51315
        • 67 Posts
        Well, it does not work properly for me.
        It needs some extra php coding i guess.
        Anyway, it is quite strange that by default pdoNeighbors does not hide links to siblings if they do not exist.
        I am gonna open another topic.

        Thanks.
          • 51315
          • 67 Posts
          EASY SOLUTION

          Install siblingNav snippet, it comes by default with an Output Filter on previous/next tpl chunks to hide Previous/Next buttons when not necessary.
          https://rtfm.modx.com/extras/revo/siblingnav
          https://github.com/Bruno17/siblingnav/tree/master/core/components/siblingnav/elements/chunks
            • 32507
            • 142 Posts
            mtalvenheimo Reply #15, 8 years ago
            Quote from: fredela at Apr 29, 2016, 11:52 AM

            In your post, You just omitted the "?" in the snippet call, otherwise it works.
            Next step could be telling pdoNeighbors to not show prev button even when the page you are visiting is the first of a group of siblings.
            Trying to figure it out.

            Thanks!

            Hi,

            Im still wondering why it isn't working for you? Also first & last resource of siblings should be (as default) without prev & next links? There shouldn't be any need for extra snippets/extras?
              • 32507
              • 142 Posts
              mtalvenheimo Reply #16, 8 years ago
              Okay. I have older version pdoTools 1.9.2 which work like I desciped. New version (2.4.0) works like you descriped. Shows even if only one children, shows prev & next buttons in first and last resource (loops)

              I have to fix this also in my site.
                • 32507
                • 142 Posts
                mtalvenheimo Reply #17, 8 years ago
                Use parameter

                loop=`0`


                That should fix both issues.
                  • 51315
                  • 67 Posts
                  Quote from: wintertribe at May 02, 2016, 12:18 PM
                  Use parameter

                  loop=`0`


                  That should fix both issues.

                  Thanks mtalvenheimo, I did not see the loop parameter anywhere.
                  I will try this on my next project.
                    • 32507
                    • 142 Posts
                    mtalvenheimo Reply #19, 8 years ago
                    Yeah. It's not documented for some reason.