mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENHANCEMENT Adjusted BlogEntry to new DatetimeField API replacing PopupDateTimeField
This commit is contained in:
parent
0bf95f21c3
commit
e45daff36e
@ -77,7 +77,9 @@ class BlogEntry extends Page {
|
||||
$fields->addFieldToTab("Root.Content.Main", new TextareaField("Content", _t("BlogEntry.CN", "Content"), 20));
|
||||
}
|
||||
|
||||
$fields->addFieldToTab("Root.Content.Main", new PopupDateTimeField("Date", _t("BlogEntry.DT", "Date")),"Content");
|
||||
$fields->addFieldToTab("Root.Content.Main", $dateField = new DatetimeField("Date", _t("BlogEntry.DT", "Date")),"Content");
|
||||
$dateField->getDateField()->setConfig('showcalendar', true);
|
||||
$dateField->getTimeField()->setConfig('showdropdown', true);
|
||||
$fields->addFieldToTab("Root.Content.Main", new TextField("Author", _t("BlogEntry.AU", "Author"), $firstName),"Content");
|
||||
|
||||
if(!self::$allow_wysiwyg_editing) {
|
||||
|
Loading…
Reference in New Issue
Block a user