How to count <% control %> iterations?
For example, if u want to display Staff Articles in the table form.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
$Pos in a control will tell you what iteration you are in. ie: $Pos == 1 for the first, $Pos == 2 for the second and so on.
This might help you: http://doc.silverstripe.org/built-in-page-controls#quick_reference
Thx =)