Smarty first item of array


{foreach from=$items key=myId item=i name=foo}

{/foreach}

{if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if} {$i.label}