Hi all,
I'm setting up a website with the brilliant Dataobject Manager (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 %>
$displayMediaAsset
<% 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.
Cheers!
Anatol