1.0.2 • Published 4 months ago

@shefing/custom-version-view v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Custom Version View plugin

This plugin adds some fields to the version view :

Updated At -using relative date

Updated by

https://github.com/user-attachments/assets/f3e79c7d-277c-4ec6-b5b9-c91b0e104286

Setup

Install the plugin using your node package manager, e.g:

pnpm add @shefing/custom-version-view

In the payload.config.ts add the following:

plugins: [
    ...plugins,
    versionsPlugin({
      excludedCollections: [] //array of collections names to exclude
      excludeGlobals:[] //array of globals names to exclude
    })

The updated by field in versions relies on the authors-info package.

Collection Configuration

Add the following configuration to enable versions for a collection:

versions: {
    drafts: true,
  }
1.0.2

4 months ago

1.0.1

5 months ago

1.0.0

5 months ago