Filter by multiple resource types

The template I’m using is filtering resources like this:

{{- $imageresources := where (resources.Match $imgglob) "ResourceType" "image" }}

I need it to include image AND video resources. How do I have to change the where clause?

Cheers!

{{ range where (resources.Match $imgglob) "ResourceType" "in" (slice "image" "video") }}
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.