Page 1 of 1

[solved] store intial value to News field definitions

Posted: Tue Sep 30, 2014 9:43 am
by blackhawk
I'm working with CMSMS 1.11.11

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}
I also tried

Code: Select all

{$field->displayvalue|cat:'something'}
, and

Code: Select all

{$field->value|cat:'something'}
But no juice...

Thanks for any advice

[solved] How to set default values for field definitions

Posted: Wed Oct 01, 2014 2:12 am
by blackhawk
I solved my mystery. If I create a drop-down field definition for articles, I can manually type in some options in which any article can select and associated with. This is a wonderful workaround for what I need.