Forum

Thread tagged as: Question

Repeater count or unique id

I'm probably overlooking some template tag, but is there any way to output a count or indexing in a repeater? I want every repeater item to have a unique id, this can be a count or a unique repeater item id, that doesn't really matter.

The goal is to have something like this in a repeater;

<div class="list">
   <div class="item-UNIQUE-NUM"></div>
   <div class="item-UNIQUE-NUM"></div>
   <div class="item-UNIQUE-NUM"></div>
</div>
Benjamin Verkleij

Benjamin Verkleij 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Exactly what i was looking for, cheers!