Skip to content

Commit

Permalink
Add CMSMain extension by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpenny authored and chrispenny committed Mar 11, 2019
1 parent f05957a commit fd99267
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion _config/config.yml → _config/extensions.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fd99267

Please sign in to comment.