Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Media stream image collection iteration

Started by Guillaume Storchi 7 years ago · 0 replies · 681 views
7 years ago

Does anyone know how to iterate on images retrieved from a stream like
In a twig template that would be

set images = page.media("image://*.jpg")
for image in images
image.html()
endfor

Thanks in advance

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 1 week ago
3 136 4 days ago
Themes & Styling · by TomW, 1 week ago
0 75 1 week ago
Themes & Styling · by themetman, 2 weeks ago
1 171 2 weeks ago
Themes & Styling · by AH, 4 weeks ago
1 286 2 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1476 2 weeks ago