1.0.7 • Published 10 months ago

@michalklor/custom-version-view v1.0.7

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

Custom Version View plugin

This plugin adds some fields to the version view :

Updated At -using relative date Updated by

For example:

img.png

Setup

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

npm 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.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.12

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago