Product Module - Field Definitions - Problem
Posted: Fri Nov 13, 2009 11:41 pm
I am wondering if anyone knows how to add field definitions, that have been created within the Product Module into the Detail Template of the products module.
There is multiple field definitions which I have created, some are text and some are images.
An example of how I have tried to do this with one of the field definitions which is an image is below.
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'image' && isset($field->image_box)}
file_location}/{$field->image_box}" width="100%" alt="{$field->value}"/>
{/if}
{/foreach}
{/if}
'image_box' is the field definitions is the name I defined in the properties for creating a new field definitions.
There is multiple field definitions which I have created, some are text and some are images.
An example of how I have tried to do this with one of the field definitions which is an image is below.
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'image' && isset($field->image_box)}
file_location}/{$field->image_box}" width="100%" alt="{$field->value}"/>
{/if}
{/foreach}
{/if}
'image_box' is the field definitions is the name I defined in the properties for creating a new field definitions.