mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
UX expand custom summary if field has value (#587)
UX expand custom summary if field has value
This commit is contained in:
commit
b1c853eafe
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user