SilverStripe 3 - Options for <% loop %>
问题 Is there a list of all the options I can add to a loop? I don't know if options is the right name for it. I mean these <% loop Dataobject.Reverse %> <% loop Dataobject.Limit() %> Can someone tell me everything that's possible here? And what the correct name for it is? 回答1: there is an error in your question, it is <% loop $DataList.xxx %> or <% loop $ArrayList.xxx %> (see, you are looping a list of DataObjects) well, loop is basically just a foreach loop so, for example: <% loop $DataList