mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Register map custom field on the server
This commit is contained in:
parent
74c3352761
commit
ceb580e753
@ -3,9 +3,16 @@
|
||||
module.exports = ({ strapi }) => {
|
||||
console.log('Running register in customfields plugin');
|
||||
|
||||
strapi.customFields.register({
|
||||
name: 'color',
|
||||
plugin: 'mycustomfields',
|
||||
type: 'text',
|
||||
});
|
||||
strapi.customFields.register([
|
||||
{
|
||||
name: 'color',
|
||||
plugin: 'mycustomfields',
|
||||
type: 'text',
|
||||
},
|
||||
{
|
||||
name: 'map',
|
||||
plugin: 'mycustomfields',
|
||||
type: 'json',
|
||||
},
|
||||
]);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user