I have the following code in my news detail template...
Code: Select all
{if isset($entry->fields)}
{foreach $entry->fields as $field}
{if $field->type == 'file'}
{if $field->name|strpos:"photo" !== false}
{if $field->displayvalue != ''}
{if $field@first}
top line for last
{/if}
<li><img src="{$entry->file_location}/{$field->displayvalue}"/></li>
{if $field@last}
bottom line for last
{/if}
{/if}
{/if}
{/if}
{/foreach}
{/if}
Code: Select all
<li>
Code: Select all
@first
Code: Select all
@last
thanks for any advice