When outputting a repeater field, how do I access the current rows index number?
ie:
foreach($pageresult->repeaterField as $repeater) {
if ($repeater->subfield) {
$repeater->index() ) /* obviously this doesnt work
}
}
I'm looking for something that can give me 1 for the first repeater entry, 2 for the second etc. I can pop in a integer and just increment it every line but thought perhaps there is a handy feature in the API (that I can't seem to see)
Also, how would I lookup a specific row?