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!
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") }}
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.