Jump to:

23478 Posts in 18950 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: 865 Views
  • sca123
    Avatar
    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
    Avatar
    Forum Moderator
    5502 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

    865 Views
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.