I'm setting up a website with the brilliant [url=http://silverstripe.org/dataobjectmanager-module/]Dataobject Manager[/url] (but I don't think the question is specific to that). To get only the first (second, third) entry I use this template syntax:
<% control MediaAssets %>
<% if Pos=1 %>
<% end_if %>
<% end_control %>
Is there any better way to get just a specific entry than this method without the <% if %> block?
I tried $displayMediaAsset.1 , $displayMediaAsset(1) , control MediaAssets(1) , control MediaAssets.1 but all of that doesn't work.
It's OK if I use the conditional if but I'm hoping there's a shorter solution.