[solved] store intial value to News field definitions

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

[solved] store intial value to News field definitions

Post 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
Last edited by blackhawk on Wed Oct 01, 2014 3:03 am, edited 2 times in total.
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

[solved] How to set default values for field definitions

Post 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.
Post Reply

Return to “The Lounge”