1.0.101 • Published 9 months ago

@michalklor/right-panel v1.0.101

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago