Is it possible to get the index number of the block type? For example, if I had 3 different blocks (a, b, and c), and the blocks were output on a page like this:
- block a (1)
- block b (1)
- block a (2)
- block c (1)
- block b (2)
- block b (3)
- block a (3)
^ Where the number in the brackets represents the amount of times the block has been output on the page.
The problem I'm trying to solve:
I have a 'pull quote' block type. The second time it's used on the page I'd like to reverse it so that the text floats on the left instead of the right. I've thought about just adding this as a different block type but it would be cool to do this automatically.