Syntax Help for Collection with Multiple Filters

  • Trying to filter a Collection with two filters like this:

    ....the info works, but the template is not found. Should the 'template' line be somewhere else?

  • Yes, the template is not part of the filter options and needs to be set in the first array, as follows.


  • Its most likely that the filter you're using is returning no results, or there are errors in your template file. You can use the <perch:noresults> and <perch:showall> to debug the template. You should also be able to see the SQL query if you have PERCH_DEBUG set to true, which you can then check to see if the query is correct.