Hi,
I can’t make ofType or ofOneOfTheseTypes work.
Let say I have the following code:
content:
items: '@self.modular'
{% for tile in page.collection().ofType('home_introduction') %}
{{ tile.content }}
{% endfor %}
The result is empty.
Why doesn’t it work? When I take out ofType(), everything is fine.
But I need to filter the collection to add a new modular content into the page.
Also what I ultimately want to achieve is something like this, with ofOneOfTheseTypes, but my syntax seems wrong:
{% for tile in page.collection().ofOneOfTheseTypes({'home_introduction', 'home_item'}) %}
{{ tile.content }}
{% endfor %}