I'm looking for a solution to count up a variable in every iteration while looping through a collection. Here's an example:

{{ var counter = 1 }}
{{collection:project}}
{{ counter ++}}
{{/collection:project}}

The goal is to give every div inside the loop an unique ID from 1 to xx

Thanks a lot :)

Answered by Erin Dalzell! Go to answer.