Skip to content

The Scheduler Calendar Plugin adds a visual, calendar-based scheduling dashboard to your Payload CMS admin. It helps you view and manage all upcoming **scheduled publishing events** across your collections — such as posts, events, or announcements.

Notifications You must be signed in to change notification settings

ahtesham-quraish/schedular-calendar-plugin

Repository files navigation

📅 Scheduler Calendar Plugin for Payload CMS

The Scheduler Calendar Plugin adds a visual, calendar-based scheduling dashboard to your Payload CMS admin.
It helps you view and manage all upcoming scheduled publishing events across your collections — such as posts, events, or announcements.


🚀 Installation

Install the plugin using your preferred package manager:

# with npm
npm install schedular-calendar-plugin

# or with yarn
yarn add schedular-calendar-plugin

# or with pnpm
pnpm add schedular-calendar-plugin

⚙️ Setup

Import the plugin into your Payload configuration file and add it to the plugins array:

import { buildConfig } from 'payload/config'
import { calendarPlugin } from 'schedular-calendar-plugin'

export default buildConfig({
  serverURL: 'http://localhost:3000',

  plugins: [
    calendarPlugin(),
  ],

  // ...your other Payload config
})

🧩 Required Collection Fields

To use the calendar plugin effectively, make sure each collection that supports scheduled publishing
includes the following fields and versioning options:

{
  slug: 'posts',
  fields: [
    {
      name: 'title',
      type: 'text',
      required: true,
    },
    {
      name: 'publishedAt',
      type: 'date',
      admin: {
        position: 'sidebar',
      },
    },
  ],
  versions: {
    drafts: {
      autosave: {
        interval: 100, // Optimal for live preview
      },
      schedulePublish: true, // ✅ Enables scheduling for this collection
    },
    maxPerDoc: 50,
  },
}

Plugin Generating import map

  • You also need to generate the import maps if needed. Please see how the import maps generated for your project.
pnpm run generate:importmap

Plugin Initialization Flow

When Payload starts, the plugin:

  • Validates incoming config
  • Injects calendar UI and hooks
  • Integrates default options for smooth scheduling
  • Returns the updated Payload config for startup

Development

  • The plugin extends your Payload config by adding collections or hooks as necessary.
  • Uses spread syntax to safely merge with existing config properties.
  • Includes full TypeScript support for plugin options.

License

  • This project is licensed under the MIT License.

About

The Scheduler Calendar Plugin adds a visual, calendar-based scheduling dashboard to your Payload CMS admin. It helps you view and manage all upcoming **scheduled publishing events** across your collections — such as posts, events, or announcements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published