davidfateh / repeater-app

The Repeater App creates a repeatable list of key-value pairs.
MIT License
30 stars 22 forks source link

How do I add the repeater app through JSON migration? #13

Open mischaboldy opened 8 months ago

mischaboldy commented 8 months ago

We update our content models using the CLI through JSON. I can not find anywhere how to setup the Repeater app correctly for a field we are using. I would assume it would have to look something like this:

{
fields: [
     {
        id: 'myJsonFields',
        type: 'Object',
        name: 'MyJsonFields',
        widget: {
            id: 'Repeater', <-- probably not correct
            namespace: 'app',
        }
    }]
}

but I can not find an id anywhere, and if I set it by hand then everytime I run my migration script the Repeater app is removed from the appearance and I have to set it back, wich is quite annoying. Any help is appreciated.