From fd99267f6974f314866fec7a7d25b5a9ad24aff2 Mon Sep 17 00:00:00 2001 From: cpenny Date: Tue, 12 Mar 2019 10:36:26 +1300 Subject: [PATCH] Add CMSMain extension by default. --- README.md | 10 +--------- _config/{config.yml => extensions.yml} | 6 +++++- 2 files changed, 6 insertions(+), 10 deletions(-) rename _config/{config.yml => extensions.yml} (50%) diff --git a/README.md b/README.md index 3e53057..5c5f335 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,7 @@ composer require silverstripe-terraformers/embargo-expiry ## Configuration -Add the following YAML configuration (e.g. in `mysite/_config/embargo.yml`): - -```yml -SilverStripe\CMS\Controllers\CMSMain: - extensions: - - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryCMSMainExtension -``` - -Then add the extension to the `DataObject` classes you want to have embargoed. +Add the extension to the `DataObject` classes you want to have embargoed. ```yml SilverStripe\CMS\Model\SiteTree: diff --git a/_config/config.yml b/_config/extensions.yml similarity index 50% rename from _config/config.yml rename to _config/extensions.yml index cb65068..9080fbd 100644 --- a/_config/config.yml +++ b/_config/extensions.yml @@ -1,6 +1,10 @@ --- -Name: embargoexpiry +Name: embargoexpiryextensions --- +SilverStripe\CMS\Controllers\CMSMain: + extensions: + - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryCMSMainExtension + SilverStripe\Versioned\VersionedGridFieldItemRequest: extensions: - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryGridFieldItemRequestExtension