We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10323
    • 35 Posts
    Is there any way to list resources based on the template (or template id) they are using? Like there is in Ditto:
    &filter=`template,3,1`

    Alternatively, I could set up a template variable to tag my resources in sync with the template and then filter by that TV but I don’t like the redundancy, and I want to use getResources...
    Thanks
      • 36575
      • 104 Posts
      &where=`{"template:=":1}`

      or for more than one:

      &where=`{"template:=":1, "OR:template:=":2}`

      Documentation: http://rtfm.modx.com/display/ADDON/getResources
        • 10323
        • 35 Posts
        Of course - thank you! (I got carried away by the xPDOQuery.where documentation and missed the &where parameter examples...)