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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Gridfield -> HtmlEditorField can't save


Go to End


1363 Views

Avatar
dh

Community Member, 13 Posts

10 October 2012 at 5:21am

Edited: 10/10/2012 5:33am

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.