UX expand custom summary if field has value

resolves #566
This commit is contained in:
Nic Horstmeier 2019-05-16 23:27:14 -05:00
parent 705c2de93f
commit 679e690ca5

View File

@ -258,6 +258,10 @@ class BlogPost extends Page
$summaryHolder->setHeadingLevel(4); $summaryHolder->setHeadingLevel(4);
$summaryHolder->addExtraClass('custom-summary'); $summaryHolder->addExtraClass('custom-summary');
if ($this->Summary) {
$summaryHolder->setStartClosed(false);
}
$fields->insertAfter('FeaturedImage', $summaryHolder); $fields->insertAfter('FeaturedImage', $summaryHolder);
$authorField = ListboxField::create( $authorField = ListboxField::create(