@ccfiel/payload-plugin-author-fields
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Payload CMS Author Fields plugin

Payload CMS plugin to add created & updated by fields

What?

Will automatically add createdBy and updatedBy fields to all globals & collections in your app.

Why?

  • Audit trail of who created & modified things
  • Use it as the basis for a publishing approval workflow

How?

Installation

npm install @boomworks/payload-plugin-author-fields

Usage

In your payload.config.ts:

export default buildConfig({
  // ...
  plugins: [
    addAuthorFields({
      // See "Configuration"
    }),
  ],
  // ...
});

Configuration

See PluginConfig for all configuration options.

The demo directory contains a Payload app showing a few examples, including customising labels & i18n.

Contributing

Found a bug or have a feature request? Open an issue on GitHub and we'll look into it.

Readme

Keywords

Package Sidebar

Install

npm i @ccfiel/payload-plugin-author-fields

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

25.1 kB

Total Files

17

Last publish

Collaborators

  • ccfiel