Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Field not updating


Reply


2 Posts   891 Views

Avatar
sca123

Community Member, 61 Posts

20 August 2009 at 8:51am

I have setup a new database (HTMLText) & CMS field (HTMLEditor)

static $has_one = array (
    'BannerArea' => 'HTMLText'
   );

$f->addFieldToTab("Root.Content.Banners", new HTMLEditorField('BannerArea'));

However, whatever I put into the editor for that field is not updated - it always takes the first entry.

Any help would be appreciated

Avatar
Willr

Forum Moderator, 5513 Posts

20 August 2009 at 12:16pm

You should have BannerArea in your $db array rather then has_one as it is a field, not a relationship