Payload CMS plugin to add created & updated by fields
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.
To install the Payload CMS Author Fields plugin, follow these steps:
npm install payload-cms-author-fieldsimport PayloadCMSAuthorFields from 'payload-cms-author-fields'plugins array in your configuration: plugins: [
PayloadCMSAuthorFields()
]
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.