ENHANCEMENT Adjusted BlogEntry to new DatetimeField API replacing PopupDateTimeField

This commit is contained in:
Ingo Schommer 2010-02-17 05:04:17 +00:00
parent 0bf95f21c3
commit e45daff36e
1 changed files with 3 additions and 1 deletions

View File

@ -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) {