Socket
Socket
Sign inDemoInstall

@webbio/strapi-plugin-scheduler

Package Overview
Dependencies
3
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @webbio/strapi-plugin-scheduler

A plugin to publish or depublish content types in the future.


Version published
Weekly downloads
576
decreased by-20.99%
Maintainers
8
Created
Weekly downloads
 

Readme

Source

Strapi plugin scheduler

Strapi Plugin to schedule publish and depublish actions for any collection type.

Schedule when you want to publish your content

Alt Text

Choose the date and time of publication and choose when to archive your page

Alt Text

That's it!

Alt Text

Installation

  1. To install the plugin run npm i @webbio/strapi-plugin-scheduler or yarn add @webbio/strapi-plugin-scheduler.

  2. 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 initial dates

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.

FAQs

Last updated on 04 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc