mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
showcalendar config method change
This commit is contained in:
parent
92004f803c
commit
141db8d472
@ -266,7 +266,7 @@ class BlogPost extends Page
|
|||||||
}
|
}
|
||||||
|
|
||||||
$publishDate = DatetimeField::create('PublishDate', _t('BlogPost.PublishDate', 'Publish Date'));
|
$publishDate = DatetimeField::create('PublishDate', _t('BlogPost.PublishDate', 'Publish Date'));
|
||||||
$publishDate->getDateField()->setConfig('showcalendar', true);
|
$publishDate->getDateField()->setShowCalendar(true);
|
||||||
if (!$this->PublishDate) {
|
if (!$this->PublishDate) {
|
||||||
$publishDate->setDescription(
|
$publishDate->setDescription(
|
||||||
_t(
|
_t(
|
||||||
|
Loading…
Reference in New Issue
Block a user