Thread tagged as: Question

Using perch_item_index in repeater?

Is it possible to use perch_item_index in a repeater? I couldn't see this in the repeater section in the docs. I'm adding a lightbox image region into Perch and I need to output the item number so that the href value can target the appropriate div.


Clive Walker

Clive Walker 22 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, the repeater is treated like a sub-template, so it'll get its own index.

Cheers, thanks!