This module adds the ability to schedule publish and unpublish events at a certain date and time. It can be applied to different model classes, but is commonly used with
SiteTree where it comes with built-in UI triggers.
Install with Composer:
composer require silverstripe-terraformers/embargo-expiry
Add the following YAML configuration (e.g. in
SilverStripe\CMS\Controllers\CMSMain: extensions: - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryCMSMainExtension
Then add the extension to the
DataObject classes you want to have embargoed.
SilverStripe\CMS\Model\SiteTree: extensions: - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryExtension
If you are applying the extension fo a DataObject other than
SiteTree, ensure it has the
Versioned extension applied so it can be published/unpublished.
MyCustomDataObject: extensions: - SilverStripe\Versioned\Versioned - Terraformers\EmbargoExpiry\Extension\EmbargoExpiryExtension
Now run a
dev/build in your browser,
or from the command line via
Finally, ensure you've set up queuedjobs correctly
to execute your jobs periodically.
EmbargoExpiryFluentExtension is provided to add support for DataObject that have
The expected behaviour is that you can now set an Embargo & Expiry date in each Locale separately from each other, and when those dates pass, the Jobs will publish/un-publish only the record in that Locale.
Please be very aware that there is no test coverage for this Extension as Fluent is not an included dependency for this module. You will need to cover your own tests if you decide to use this Extension.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem