UX expand custom summary if field has value (#587)

UX expand custom summary if field has value
This commit is contained in:
Guy Marriott 2019-05-17 16:51:08 +12:00 committed by GitHub
commit b1c853eafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(