I have a list field called “contentblocks” with two elements: A text field called “title” and an editor field called “content”.
So now in my Twig code I want to get the entry where the title is “youtube”. I tried like this:
{{ page.header.contentblocks[title=‘YouTube’].content}}
contentblocks:
-
title: '**What if your strings had the perfect partner?**'
content: "my content"
-
title: '## Tempera ROSIN in a nutshell:'
content: "my content 2"
-
title: 'YouTube'
content: "my YouTube link"