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
1 changed files with 4 additions and 0 deletions

View File

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