We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36786 ☆ A M B ☆
    • 209 Posts
    Ben Morrison Reply #1, 12 years ago
    I am trying to list fellow children under a single resource. So if I had 5 child resources of a single resource and I was viewing one of those children, in the sidebar on my website the other child resources would be listed.

    Thanks!

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

      Ben Morrison
      Hacking templates to pieces since 2003
      • 4172
      • 5,888 Posts
      you can use wayfinder, getResources, pdoMenu, pdoResources, migxLoopCollection, rowboat........

      for example getResources:

      [[getResources? 
        &parents=`[[*parent]]`
        &resources=`-[[*id]]`
        &tpl=`yourTplChunk`
      ]] 
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36786 ☆ A M B ☆
        • 209 Posts
        Ben Morrison Reply #3, 12 years ago
        Thanks! My one issue is that when on the parent resource, that doesn't show it's children (obviously). Is there a way to make it so that if a resource has no parent, it instead shows it's own children? This is in a sidebar so it is uniform throughout the site.
          Ben Morrison
          Hacking templates to pieces since 2003
        • discuss.answer
          • 4172
          • 5,888 Posts


          [[getResources?
            &parents=`[[*parent:is=`0`:then=`[[*id]]`:else=`[[*parent]]`]]`
            &resources=`-[[*id]]`
            &tpl=`yourTplChunk`
          ]]
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36786 ☆ A M B ☆
            • 209 Posts
            Ben Morrison Reply #5, 12 years ago
            Thanks!
              Ben Morrison
              Hacking templates to pieces since 2003