1.0.101 • Published 10 months ago

@michalklor/right-panel v1.0.101

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

Right-panel plugin

We created a plugin which will enable the open of a relationship field in a right panel instead of in a pop-up.

This allows working on both of the entities ,original and relationship, at once.

This was done by adding a custom view to the edit view.

For example:

img1.png

Setup

In order to use this authorization cross collection plugin install it using your prefered node package manager, e.g:

npm add @michalklor/right-panel

In the payload.config.ts add the following:

RightPanelPlugin({});

Configuration

  • excludedCollections: array of collections names to exclude

collection configuration

In the collection where you want to add a Right Panel to a Relationship field, you need to include the following in the collection's admin configuration:

  admin: {
    custom: {
      rightPanel: true,
    },

  },

Fields Configuration

In the Relationship field where you want to enable the Right Panel, you need to add the following lines to the field configuration:

    admin: {
      components: {
        Field: 
        components: {
            Field: '@michalklor/right-panel/components/RelationInRightPanelField'
        }
      }
    },
1.0.101

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago