A plugin for Strapi that provides the ability to easily schedule publishing and unpublishing of any content type.
The installation requirements are the same as Strapi itself and can be found in the documentation on the Quick Start page in the Prerequisites info card.
- v4.x.x
NOTE: While this plugin may work with the older Strapi versions, they are not supported, it is always recommended to use the latest version of Strapi.
npm install strapi-plugin-publisher
or
yarn add strapi-plugin-publisher
The plugin configuration is stored in a config file located at ./config/plugins.js
.
module.exports = ({ env }) => ({
publisher: {
enabled: true,
},
});
The cron.enabled
configuration option needs to be set to true in Server Configuration for the plugin to work.
Once the plugin has been installed, configured and enabled a Publisher
section will be added to the informations
section of the edit view for all content types (single + collection) that have draftAndPublish
enabled. The Publisher
section will provide the ability to schedule publishing and unpublishing of the content type. The content type publication status is checked every minute.
If the Publisher section does not appear after the plugin is enabled trigger a clean rebuild of the admin
Navigate to the entity record that should be (un)published, under the informations
section click the Add a (un)publish date
button. Enter in the date and click save, the entity record will then be (un)published at the specified time.
Navigate to the entity record that requires its date changed, under the informations
section click the Edit (un)publish date
button. Enter in the new date and click save.
Navigate to the entity record that contains the date that should be removed, under the informations
section click the Delete (un)publish date
button.
If any bugs are found please report them as a Github Issue