In a twig template, how can I request a collection with pagination, limit, and order using “findTaxonomy”? I need to create a list of the latest posts in certain categories. The following experiment does not work:
{% set blog_collection = taxonomy.findTaxonomy({'category':['Music', 'Film']},'or').visible().published().setParams({'limit': 5, 'pagination': true}).order('date', 'desc') %}
Alternately, is there some other way to accomplish the same thing?
Note that I cannot use frontmatter in this case, as there are other parts of the page with different needs. Plus I really want to know how this works in twig.