I am using Product manager to display information on the usual type of things, i.e., name img desc etc...
I have made a custom field for a stock table.
My question is as follows:
- In the same way that a default attribute can be added to a content block, i.e, {content assign='newName' default='<p>Default</p>'} etc
Is there any kind of equivalent to this from the way custom fields are generated in the template?
Something like this:
Code: Select all
{foreach from=$entry->fields key='stockTable' item='field'}
{if $field->stockTable == 'detail'}
{$field->value default='<p>default text here</p>'}
{/if}
{if $field->name == 'stockTable'}
{$field->value default='<p>default text here</p>'}
{/if}
{/foreach}
Hope this is all clear enough and makes sense in way question is written... first post on this forum.
Thank you!