Rolling Count on CMS List Items

This demo uses JavaScript to count the number of items in a collection list and append that number to each item. Each # is replaced by the respective order in the list. See page custom code </body>.

Set the class cms-item_wrapper to the items being counted and the cms-item_number to the child text element that will show the count.

a
#
b
#
c
#
d
#
e
#
f
#
g
#
h
#