Payload Plugin Author Fields screenshot

Payload Plugin Author Fields

Author Avatar Theme by Boomworks
Updated: 14 May 2024
44 Stars

Payload CMS plugin to add created & updated by fields

Categories

Overview:

The Payload CMS Author Fields plugin is a plugin designed to add “createdBy” and “updatedBy” fields to all globals and collections in your app. This plugin can be used to create an audit trail of who created and modified things, making it useful for a publishing approval workflow.

Features:

  • Automatically add createdBy and updatedBy fields: This plugin will automatically add the createdBy and updatedBy fields to all globals and collections in your app.
  • Audit trail of who created & modified things: By adding createdBy and updatedBy fields, this plugin allows you to track and monitor who created and modified items in your app.
  • Use for publishing approval workflow: The addition of createdBy and updatedBy fields can be used as the basis for implementing a publishing approval workflow in your app.

Installation:

To install the Payload CMS Author Fields plugin, follow these steps:

  1. Open your command line interface.
  2. Navigate to your project directory.
  3. Run the following command: npm install payload-cms-author-fields
  4. In your payload.config.ts file, import the plugin: import PayloadCMSAuthorFields from 'payload-cms-author-fields'
  5. Add the plugin to the plugins array in your configuration:
 plugins: [
   PayloadCMSAuthorFields()
]
  1. Save the file.

Summary:

The Payload CMS Author Fields plugin is a useful tool for adding createdBy and updatedBy fields to your globals and collections in Payload CMS. By automatically tracking and storing this information, you can create an audit trail of who created and modified items in your app. Additionally, the plugin can be used as the basis for implementing a publishing approval workflow.