diff --git a/composer.json b/composer.json index bfc3a15..06f168b 100644 --- a/composer.json +++ b/composer.json @@ -8,9 +8,9 @@ ], "license": "BSD-3-Clause", "require": { - "silverstripe/framework": "^4.0", - "silverstripe/admin": "^1.0", - "dnadesign/silverstripe-elemental": "^4.0" + "silverstripe/framework": "^5.0", + "silverstripe/admin": "^2.0", + "dnadesign/silverstripe-elemental": "^5.0" }, "autoload": { "psr-4": { @@ -22,7 +22,7 @@ "client/dist" ], "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "5.x-dev" } }, "minimum-stability": "dev", diff --git a/src/Extensions/PageExtension.php b/src/Extensions/PageExtension.php index ce3b249..b973113 100644 --- a/src/Extensions/PageExtension.php +++ b/src/Extensions/PageExtension.php @@ -46,10 +46,10 @@ public function updateCMSFields(FieldList $fields) $enable_summary = $this->owner->config()->get('enable_summary'); if($enable_summary){ $fields->insertBefore( + 'Content', TextAreaField::create("Summary", "Summary") ->setRightTitle('If no summary is specified the first 50 words will be used from the Content field.') - ->setRows(3), - 'Content' + ->setRows(3) ); }