Hi,
I’ll try to filter $.Site.Pages by using an array $includedPages.
The content of $includedPages looks like that:
map[map[contentType:detail id:GFDSWhmsdf58asdf] map[contentType:detail id:A5GSWhmsd87454]]
Now I want to filter $.Site.Pages by “.File.TranslationBaseName” to get only those contained in $includedPages:
{{ $pages := where $.Site.Pages ".File.TranslationBaseName" "in" $includedPages.id }}
I get following error:
<$includedPages.id>: can't evaluate field id in type []interface {}
How can I map the ids from includedPages to an array, so that the filterng of .Site.Pages works?
Or is there maybe a better way on achieveing my goal?