We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50574
    • 70 Posts
    Hello

    Is there a way to not include certain siblings within the siblingNav call?
    Perhaps a comma delimited list (-22, -24, -30 etc)?

    Thanks in advance.

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      try

      &exclude=`22,24,30`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 50574
        • 70 Posts
        Thanks Bruno, perfect.
        Does &exclude generally work across all snippets?
          • 50574
          • 70 Posts
          On a similar note. I have an option TV that if it is set to 'no' I'd like to exclude those pages. Is it a matter of creating another snippet that pulls the ID of resources with the TV set as 'no' and then load that delimited list into the &exclude call above?
            • 4172
            • 5,888 Posts
            with MIGX installed, untested, out of my head, replace xx with the id of your TV:

            [[migxLoopCollection?
            &classname=`modRemplateVarResource`
            &where=`{"value":"no","tmplvarid":"xx"}`
            &tpl=`@CODE:[[+contentid]]`
            &outputSeparator=`,`
            &toPlaceholder=`excludelist`
            ]]
            
            [[siblingNav?
            &exclude=`[[+excludelist]]`
            ....
            ]]
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 50574
              • 70 Posts
              Wow. Thanks Bruno.
              I bow to your knowledge.