Jump to:

3373 Posts in 998 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Gridfield -> HtmlEditorField can't save

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

Page: 1
Go to End
Author Topic: 363 Views
  • dh
    Avatar
    Community Member
    13 Posts

    Gridfield -> HtmlEditorField can't save Link to this post

    i can't save a datasets, where have a HtmlEditorField. After Button-click is the backend empty.

    my Code:

    class FileArticleObject extends ImageObject {

    static public $singular_name = 'Artikel';
    static public $plural_name = 'Artikel';

    static $db = array(
    'Date' => 'Date'
    );

    public static $summary_fields = array(
    'Picture.CMSThumbnail' => 'Foto',
    'Date' => 'Date',
    'Title' => 'Überschrift',
    'Description' => 'Inhalt'

    );

    public function getCMSFields() {

    $date = new DateField('Date', 'Datum');
    $date->setConfig('showcalendar', true);

    return new FieldList(
    new TextField('Title', 'Überschrift'),
    new HtmlEditorField('Description', 'Inhalt'),
    $date,
    new UploadField('Picture', 'Bilder')
    );
    }
    }

    additional:
    the $summary_fields doesn't translate the columns.

    363 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.