The Pos method used in SilverStripe template loops supports adjusting the starting number of the position index (see silverstripe-framework/src/View/SSViewer_BasicIteratorSupport.php). It would be good to add feature parity for those wishing to use zero based indexes ;)
Description
The
Pos
method used in SilverStripe template loops supports adjusting the starting number of the position index (see silverstripe-framework/src/View/SSViewer_BasicIteratorSupport.php). It would be good to add feature parity for those wishing to use zero based indexes ;)Additional context or points of discussion
No response
Validations
PRs