can one inside a loop in template over a DataObject somehow tell wether you’re at $Pos 24 but counted from bottom – something like:
<% if Pos = "-24" %>do stuff<% end_if %>
or like
<% if TotalItems - 24 = Pos %>do stuff<% end_if %>
or like
<% if Last(24) %>do stuff<% end_if %>
In Silverstripe 3, to be able to do:
you’ll have to add
MyCustomIteratorFunctions.phpto your /code folder with the following contents:as seen here: https://groups.google.com/forum/#!msg/silverstripe-dev/DVBtzkblZqA/PWxanKGKDYIJ