Hi, does anyone know how to count the elements in a template page?
I have used the "control children" before, and I can use the $Pos variable on that, but I have a page that lists all grand-children, so if I render $Pos to the elements, it resets each time if starts a new loop of the parent.
All I really want is to count the elements as they are rendered to the template and increment each time.
So it would look something like:
<% control GrandChildren %>
<% end_control %>
which would output 1,2,3,4 etc. rather than 1,2,1,1,2,3,1 as $Pos does.
Any help would be very much appreciated thanks.