[solved] Only display one field name in summary template - Products Module
Posted: Wed Aug 25, 2010 6:17 am
Dear masters!
I get trouble when want display only one field in module products.
In module products, I create 2 field:
Image1 - Type: Image
Image2 - Type: Image
and in summary view, it display 2 image with this loop code:
{if isset($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'image' && isset($field->thumbnail)}
file_location}/{$field->thumbnail}" alt="{$field->value}"/>
{/if}
{/foreach}
{/if}
But I really want display field 1 (Image1), can I?
Thank masters!
I get trouble when want display only one field in module products.
In module products, I create 2 field:
Image1 - Type: Image
Image2 - Type: Image
and in summary view, it display 2 image with this loop code:
{if isset($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'image' && isset($field->thumbnail)}
file_location}/{$field->thumbnail}" alt="{$field->value}"/>
{/if}
{/foreach}
{/if}
But I really want display field 1 (Image1), can I?
Thank masters!