Displaying List Data

Silly question… I’ve got my admin setup to have list items but I’m still unsure how to piece it together in my example.html.twig template.

Here’s part my YAML:
header.customer_videos:
ordering@: 10
type: list
collapsed: true
label: Videos
fields:
.video:
type: textarea
size: large
label: Video Embed

Here’s what I have in my template:
{% for video in page.header.customer_videos %}

{{ customer_videos.video }}


{% endfor %}

I’m definitely missing something in the for statement, but I’m not sure what??

Hey Dan,

i dont test your stuff, but this should work.

**Here’s part my YAML:**

header.customer_videos:
    ordering@: 10
    type: list
    collapsed: true
    label: Videos

    fields:
        .video:
            type: textarea
            size: large
            label: Video Embed


**Here’s what I have in my template:**

{% for item in page.header.customer_videos %}
    {{ item.video }}
{% endfor %} 

I just changed video to items for readability (it would also work with video.video)

Hey, thanks for this! I didn’t understand things at first but I broke it down a bit and this worked good. Thank you!