Strapi Plugin to schedule publish and depublish actions for any collection type.
Schedule when you want to publish your content
Choose the date and time of publication and choose when to archive your page
That's it!
-
To install the plugin run
npm i @webbio/strapi-plugin-scheduler
oryarn add @webbio/strapi-plugin-scheduler
. -
After the plugin is installed, add the plugin to the plugins.js file in your config folder.
scheduler: {
enabled: true,
config: {
contentTypes: {
'api::page.page': {}
}
}
},
Set the initial archive date and initial publish date in the plugin settings. These dates will automatically be set when creating a new page.
scheduler: {
enabled: true,
resolve: './src/plugins/strapi-plugin-scheduler',
config: {
'api::page.page': {
initialPublishAtDate: setMonth(
new Date(),
new Date().getMonth() + 1
).toDateString(),
initialArchiveAtDate: setMonth(
new Date(),
new Date().getMonth() + 3
).toDateString(),
},
},
},
Now when you run your application, the addon will be added to the sidebar. You can choose a date and time to publish or archive your article.