I would like to concatenate a string value onto a news field definition, from my summary or details template. This way when the user opens their news article, they will see a value added to that input field definition.
If the field definition already has content, this value will simply be added to whatever is there. Is this possible?
This is what I tried so far
Code: Select all
{foreach from=$items item=entry}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->name == 'myInputField'}
{$field|cat:'something'}
{/if}
{/foreach}
{/if}
{/foreach}
Code: Select all
{$field->displayvalue|cat:'something'}
Code: Select all
{$field->value|cat:'something'}
Thanks for any advice