Get a collection but only for a given template type

Yes it’s possible by using .ofType() function.

There was a similar topic on how to use it in template: “Is the method ofType usable in a collection defined with twig syntax?

1 Like