A multi content type relation plugin for Strapi 5.
npm install multi-content-type-relationCreate deep relations in the contribution between content types.
- Multilingual Support i18n out of the box
- Support Publication State
- Required, minimum, maximum validators for the custom field
- Seamless UI integration with Strapi Design System
Install the plugin in your Strapi project
``bash`
npm install multi-content-type-relation
After installation, enable the plugin in your config file
`js
// config/plugins.js
module.exports = () => ({
"multi-content-type-relation": {
enabled: true,
config: {
recursive: {
enabled: true,
maxDepth: 2,
},
debug: false,
},
},
// .. other plugins
});
`
The plugin should now appear in the Settings section of your Strapi app
This plugin allows you to create a custom field inside any content type you want. This custom field will allow you, after some configuration in the content type builder to select multiple content types in the contribution
Configuring a MRCT field by selecting content types you want to link

Advanced settings Tab

Usage from contribution side
https://i.imgur.com/UDz7pUh.mp4
Plugin configuration settings
###### Key: recursive
> required: no | type: { enabled: Boolean, maxDepth: number} | default { enabled: false, maxDepth: 1}
By default, the plugin will only hydrate the direct relations of the content you fetch
If, for some reasons, you want to hydrate the relations of the relations of the content you fetch, you can through this setting.
> Note: this setting will DRAMATICALLY increase the load on Strapi. The complexity is O(n^maxDepth) and the plugin will fetch n^maxDepth items through Strapi API. I strongly recommand to never go above maxDepth set to 2.
###### Key: debug
> required: no | type: Boolean | default false
This setting show debug log of the plugin for better understanding
###### Key: disableRevertRelations
> required: no | type:` Boolean | default false
This setting disable relaction MCTR if needed for performances/stability concerns
You can use github issues to raise an issue about this plugin
Feel free to fork and make a pull request of this plugin !