Client Side Template
{[countOneBased]}
Description
Used to number rows.
The special {[countOneBased]} tag is used to number the rows of data passed into the template. For example, say you have this JSON data set.
{ employees: [ {firstname: 'Fred', lastname: 'Smith', skills: 'Javascript'}, {firstname: 'Laura', lastname: 'Linneker', skills:'Xbasic'}, {firstname: 'Jim', lastname: 'York', skills:'Fortran'} ] }
You could use 'countOneBased' in this template to display a number for each row.
{employees} {[countOneBased]} {firstname} {lastname}<br> {/employees}
The result:
1 Fred Smith 2 Laura Linneker 3 Jim York