We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

How to loop over an array from an exploded string?

Johan Dahl December 2, 2020 by Johan Dahl

I have a value which is a string containing a comma separated list. I use a modifier to explode it into an array, now I want to loop over it - how can I do this?

Something like this

{{ part:page }}
    {{ value | explode:, }} // for each...
{{ /part:page }}
>>>>>>> Unanswered <<<<<<<
4 Replies