1.0.101 • Published 10 months ago
@michalklor/right-panel v1.0.101
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:

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'
}
}
},