We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26401
    • 247 Posts
    For example

    [[!getPage? &element=`getResources` &parents=`5,6,7` &resources=`-10` &tpl=`myRowTpl`]]

    If I have a resource that has 5 and 6 as a parent, getPage returns duplicates.

    Is there a way to return items as an array, or remove the duplicates?
      • 3749
      • 24,544 Posts
      If I have a resource that has 5 and 6 as a parent, getPage returns duplicates.

      I'm not sure what you're saying here. A page can only have one parent. Is it possible that you have two identical pages, one that has a parent of 5 and the other that has a parent of 6?


        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting