Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Field not updating

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

Page: 1
Go to End
Author Topic: 867 Views
  • sca123
    Community Member
    61 Posts

    Field not updating Link to this post

    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

  • Willr
    Forum Moderator
    5508 Posts

    Re: Field not updating Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.