rilrom

content freeze

by rilrom
payload-bites
Publishing workflow
v4
>=4.0.0-beta.10 <5.0.0
MIT

Overview

Summary generated from the README

Adds a Content freeze settings global where admins pick collections and globals to lock, set an optional banner message and toggle the freeze. While active, create, update and delete operations are blocked on the selected targets and a banner shows across the admin panel. It wraps existing access controls, so original rules still apply when no freeze is active. Version 2.x targets Payload 4 prereleases; 1.x targets Payload 3.

Features

  • Settings global to enable or disable the freeze with one checkbox
  • Choose which collections and globals are placed under freeze
  • Blocks create, update and delete on frozen collections and update on frozen globals
  • Custom message shown in a banner on all admin screens
  • Wraps existing access control so original rules still evaluate
  • Settings global can be overridden to restrict access to admins

Use cases

  • Prevent content edits during critical production deployments
  • Lock content ahead of a marketing campaign launch
  • Freeze content during compliance audits or emergencies

From the author

make sure your team are putting the tools down during critical moments

Installation

npm i @payload-bites/content-freeze

115

Stars

7

Forks

2

Open Issues

1 weeks ago

Last Updated

221

Weekly Downloads

v1.4.1

npm Version

188.5 KB

Unpacked Size

0

Dependencies

Repository stars

115+3 since Sep 6

Show data
Repository stars by day (UTC)
DateStars
Dec 5, 2026115
Dec 4, 2026115
Dec 3, 2026115
Dec 2, 2026115
Dec 1, 2026115
Nov 30, 2026115
Nov 29, 2026115
Nov 28, 2026115
Nov 27, 2026115
Nov 26, 2026115
Nov 25, 2026114
Nov 24, 2026114
Nov 23, 2026114
Nov 22, 2026114
Nov 21, 2026114
Nov 20, 2026114
Nov 19, 2026114
Nov 18, 2026114
Nov 17, 2026114
Nov 16, 2026114
Nov 15, 2026114
Nov 14, 2026114
Nov 13, 2026114
Nov 12, 2026114
Nov 11, 2026114
Nov 10, 2026114
Nov 9, 2026114
Nov 8, 2026114
Nov 7, 2026114
Nov 6, 2026114
Nov 5, 2026114
Nov 4, 2026114
Nov 3, 2026114
Nov 2, 2026114
Nov 1, 2026114
Oct 31, 2026114
Oct 30, 2026114
Oct 29, 2026114
Oct 28, 2026114
Oct 27, 2026114
Oct 26, 2026114
Oct 25, 2026114
Oct 24, 2026114
Oct 23, 2026114
Oct 22, 2026114
Oct 21, 2026113
Oct 20, 2026113
Oct 19, 2026113
Oct 18, 2026113
Oct 17, 2026113
Oct 16, 2026113
Oct 15, 2026113
Oct 14, 2026113
Oct 13, 2026113
Oct 12, 2026113
Oct 11, 2026113
Oct 10, 2026113
Oct 9, 2026113
Oct 8, 2026113
Oct 7, 2026113
Oct 6, 2026113
Oct 5, 2026113
Oct 4, 2026113
Oct 3, 2026113
Oct 2, 2026113
Oct 1, 2026113
Sep 30, 2026113
Sep 29, 2026113
Sep 28, 2026113
Sep 27, 2026113
Sep 26, 2026113
Sep 25, 2026113
Sep 24, 2026113
Sep 23, 2026113
Sep 22, 2026113
Sep 21, 2026113
Sep 20, 2026113
Sep 19, 2026113
Sep 18, 2026113
Sep 17, 2026113
Sep 16, 2026113
Sep 15, 2026113
Sep 14, 2026113
Sep 13, 2026112
Sep 12, 2026112
Sep 11, 2026112
Sep 10, 2026112
Sep 9, 2026112
Sep 8, 2026112
Sep 7, 2026112
Sep 6, 2026112

Shared by 6 plugins in rilrom/payload-bites.

npm weekly downloads

459+446 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 2026459
Dec 4, 2026454
Dec 3, 2026460
Dec 2, 2026451
Dec 1, 2026595
Nov 30, 2026677
Nov 29, 2026656
Nov 28, 2026382
Nov 27, 2026409
Nov 26, 2026466
Nov 25, 2026442
Nov 24, 2026281
Nov 23, 2026187
Nov 22, 2026178
Nov 21, 2026162
Nov 20, 2026116
Nov 19, 202626
Nov 18, 202619
Nov 17, 202616
Nov 16, 202616
Nov 15, 202612
Nov 14, 202611
Nov 13, 202614
Nov 12, 202643
Nov 11, 2026130
Nov 10, 2026132
Nov 9, 2026132
Nov 8, 2026134
Nov 7, 2026140
Nov 6, 2026160
Nov 5, 2026164
Nov 4, 202676
Nov 3, 202673
Nov 2, 202674
Nov 1, 202666
Oct 31, 202662
Oct 30, 202639
Oct 29, 20264
Oct 28, 20263
Oct 27, 20264
Oct 26, 20264
Oct 25, 202610
Oct 24, 202624
Oct 23, 202624
Oct 22, 202632
Oct 21, 202635
Oct 20, 202634
Oct 19, 202634
Oct 18, 202650
Oct 17, 202637
Oct 16, 202646
Oct 15, 202654
Oct 14, 202686
Oct 13, 2026102
Oct 12, 2026112
Oct 11, 202691
Oct 10, 202688
Oct 9, 202680
Oct 8, 202666
Oct 7, 202634
Oct 6, 202618
Oct 5, 20267
Oct 4, 20266
Oct 3, 202611
Oct 2, 202610
Oct 1, 20268
Sep 30, 20265
Sep 29, 20265
Sep 28, 20265
Sep 27, 20269
Sep 26, 20268
Sep 25, 20268
Sep 24, 20269
Sep 23, 202616
Sep 22, 202618
Sep 21, 202622
Sep 20, 202619
Sep 19, 202617
Sep 18, 202619
Sep 17, 202619
Sep 16, 202613
Sep 15, 202612
Sep 14, 20268
Sep 13, 20267
Sep 12, 20266
Sep 11, 20268
Sep 10, 20268
Sep 9, 20269
Sep 8, 20269
Sep 7, 20269
Sep 6, 202613

Each point is npm's rolling 7-day download count.

Health Score

85/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/908347705-content-freeze.svg)](https://payloaddirectory.dev/plugins/908347705-content-freeze)
HTML
<a href="https://payloaddirectory.dev/plugins/908347705-content-freeze"><img src="https://payloaddirectory.dev/badge/908347705-content-freeze.svg" alt="Payload Directory"></a>
Updated Nov 26, 2026Created Dec 25, 2024Published Nov 26, 2026

README

Content Freeze

Make sure your team puts the tools down during critical moments. This plugin disables create, update, and delete operations across specified collections and globals when a content freeze is active.

Compatibility table

Payload versionContent freeze version
v3v1.x
v4v2.x

Payload 4 versions are prereleases. Install them with pnpm add @payload-bites/content-freeze@beta.

Use cases

  • Deployment freezes: Prevent content changes during critical deployments.
  • Marketing campaigns: Lock content before major campaigns go live.
  • Audit periods: Freeze content during compliance audits.
  • Release management: Coordinate content changes with software releases.
  • Emergency situations: Quickly lock down your CMS when needed.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/content-freeze
  1. Add the plugin to your payload.config.ts:
import { contentFreezePlugin } from "@payload-bites/content-freeze";

export default buildConfig({
  // ...
  plugins: [
    // ...
    contentFreezePlugin({
      // optional but recommended for custom access control
      overrideContentFreezeSettingsGlobal: (global) => ({
        ...global,
        access: {
          ...global.access,
          read: ({ req }) => req.user?.role === "admin",
          update: ({ req }) => req.user?.role === "admin",
        },
      }),
    }),
    // ...
  ],
  // ...
});

Usage

Activating a content freeze

  1. Navigate to the Content freeze settings global in your admin panel.
  2. Select the collections and/or globals you would like to be placed under content freeze.
  3. Optionally, add a custom message to display in the banner.
  4. Check the Enable content freeze checkbox.
  5. Save the global.

A banner will appear at the top of all admin screens, and create/update/delete operations will be blocked on the selected collections and globals.

Deactivating a content freeze

  1. Navigate to the Content freeze settings global.
  2. Uncheck the Enable content freeze checkbox.
  3. Save the global.

The banner will disappear and normal usage can resume.

Options

For all available options, refer to types.ts.

Defaults

For default values, refer to defaults.ts.

How it works

When the content freeze is active:

  • Collections: Create, update, and delete operations are blocked.
  • Globals: Update operations are blocked.
  • Settings global: Remains accessible to authorized users so they can deactivate the freeze.
  • Banner: Displays across all admin screens with your custom message.

The plugin wraps existing access controls, so your original access rules are still evaluated when the freeze is not active.

Roadmap

  • Translations.
  • Scheduled publish of content freeze.

Similar plugins