Netlify CMS: How to represent arrays in config file

writer: [1,2]

I am using netlify cms in 11ty. I am trying to configure this array in the CMS. I tried using ‘object’ widget but it was not reading.

Here is the config that I am using right now:

  • label: “Writer”
    name: “writer”
    widget: “object”
    fields:
    - {label: “Writer no”, name: “writer no”, widget: “number”}

Thank you for your help:)

Try the list widget!

- label: Writer
  name: writer
  widget: list,
  summary: '{{fields.writer_no}}'
  field: {label: Writer no, name: writer_no, widget: number}
1 Like

Thank you so much:) That worked. Appreciate your help!

1 Like