silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
109 stars 115 forks source link

Added `$startIndex` param to `Pos` method #1225

Open nedmas opened 1 month ago

nedmas commented 1 month ago

Description

I've added $startIndex param to the Pos method with a default value of 1.

Manual testing steps

Loop through elements in an elemental area and print the results of $Pos(1).

Issues

Pull request checklist