A Strapi plugin that allows you to copy components from another entity.
A Strapi plugin that allows you to copy components from another entity.
# using yarn
yarn add strapi-plugin-copy-component
# using npm
npm install strapi-plugin-copy-component --save
Then in your config/plugins.js
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = ({ env }) => ({
// ...
'copy-component': {
config: {
contentTypes: [
'api::mycollection.mycollection',
{
uid: 'api::mycollection2.mycollection2',
source: [
'api::mycollection2.mycollection2',
'api::mycollection3.mycollection3',
],
}
]
}
}
// ...
});
contentTypes
can contain strings or objects:
1
2
3
contentTypes: [
'api::blogpost.blogpost'
]
1
2
3
4
5
6
7
8
9
contentTypes: [
{
uid: 'api::navlink.navlink',
source: [
'api::navlink.navlink',
'api::footerlink.footerlink',
],
}
]
npm install strapi-plugin-copy-component
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.