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!
[solved] Only display one field name in summary template - Products Module
[solved] Only display one field name in summary template - Products Module
Last edited by ngoncom on Thu Aug 26, 2010 8:42 am, edited 1 time in total.
Re: Only display one field name in summary template - Products Module
Change:
{if $field->type == 'image' && isset($field->thumbnail)}
as bellow:
{if $field->type == 'image' && $field->name == 'Image1' && isset($field->thumbnail)}
{if $field->type == 'image' && isset($field->thumbnail)}
as bellow:
{if $field->type == 'image' && $field->name == 'Image1' && isset($field->thumbnail)}
Re: Only display one field name in summary template - Products Module
Thank Maranc very much! 
My problem solved!

My problem solved!