@shefing/cross-collection
v1.0.5
Published
Downloads
178
Readme
🔗 Cross-Collection Config Plugin
This plugin allows you to override default Payload CMS component views and inject custom behavior.
📦 Installation
Install the plugin via your package manager:
pnpm add @shefing/cross-collection⚙️ Setup
To override a component's view in Payload, add the following to your payload.config.ts:
```javascript
import { CrossCollectionConfig } from '@shefing/cross-collection';
CrossCollectionConfig({
customOverrides: {
// Replace the default edit view
'admin.components.views.edit.default': CustomCollectionEdit,
// Replace the versions edit view
'admin.components.views.edit.versions': CustomCollectionEdit,
// enable to exclude some collections from permission control
excludedCollections: ['posts', 'media'],
// array of globals names to exclude
excludedGlobals:[],
},
});🔥 Features
- Full Control: Override any Payload component view.
- Easy Customization: Replace edit views, list views, and more with custom React components.
- Flexible: Override any default view across the CMS.
With this plugin, you have full control over how every component view in Payload CMS appears! ✨
