Forum
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
.
Thanks.
Yes, the repeater is treated like a sub-template, so it'll get its own index.
Cheers, thanks!