3060 Posts in 864 Topics by 646 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 189 Views |
-
Gridfield -> HtmlEditorField can't save

10 October 2012 at 5:21am Last edited: 10 October 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.
| 189 Views | ||
|
Page:
1
|
Go to Top |

