Is it possible (with twig) to loop over the content (for example images) of a folder?
Yes, through a plugin using PHP's scandir if you explicitly need to target a Folder, but if you are after Media within a Page then you should be using Grav's Media-mechanism: https://learn.getgrav.org/cookbook/general-recipes#creating-a-simple-gallery
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 672 | 1 week ago | ||
| 0 | 3042 | 9 years ago | ||
| 2 | 1983 | 9 years ago | ||
| 2 | 5336 | 9 years ago | ||
| 1 | 4134 | 9 years ago |