You can also provide multiple complex collection definitions and the resulting collection will be the sum of all the pages found from each of the collection definitions. For example:
But it’s not working. The blog list is showing all of the news pages. It looks like the taxonomy is completely ignored. When I use the taxonomy filtering directly on the collection it works:
@dapu, As said before, a collection definition containing multiple collections combines the results of all defined collections.
The following collection contains all child pages of page /newsplus all pages with category: Blog and tag: Spielbericht.
Meaning: If all taxonomy pages are in folder /news, the taxonomy filter has no effect, because all pages below /news are already included in the collection.
content:
items:
'@page.pages': /news
'@taxonomy':
category: Blog
tag: Spielbericht
@page.children - Children of a specific page
This collection takes a slug route of a page as an argument and will return all the published children of that page:
content:
items:
'@page.children': '/blog'
An alias of '@page.pages': '/blog' is also valid. Using '@page': '/blog' is deprecated as its meaning can change in the future.
Pay attention to the last paragraph which states that @page.pages: /blog is an alias for '@page.children': '/blog'
If above does not answer your question, then what is your interpretation of your own collection definition and what result do you expect?