A plugin to publish or depublish content types in the future.
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
or yarn add @webbio/strapi-plugin-scheduler
.
After the plugin is installed, add the plugin to the plugins.js file in your config folder.
1scheduler: {
2 enabled: true,
3 config: {
4 contentTypes: {
5 'api::page.page': {}
6 }
7 }
8 },
Set the initial archive date and initial publish date in the plugin settings. These dates will automatically be set when creating a new page.
1scheduler: {
2 enabled: true,
3 resolve: './src/plugins/strapi-plugin-scheduler',
4 config: {
5 'api::page.page': {
6 initialPublishAtDate: setMonth(
7 new Date(),
8 new Date().getMonth() + 1
9 ).toDateString(),
10 initialArchiveAtDate: setMonth(
11 new Date(),
12 new Date().getMonth() + 3
13 ).toDateString(),
14 },
15 },
16 },
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.
npm install @webbio/strapi-plugin-scheduler
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.