Hi! I have the following image gallery collection defined in config.yml, taken from the example with fields on the list widget docs.
collections:
- label: 'Portfolio'
name: 'portfolio'
files:
- label: 'Portfolio images'
name: 'portfolioImages'
file: 'src/_data/portfolio.json'
fields:
- label: 'Images'
label_singular: 'image'
name: 'images'
widget: 'list'
collapsed: true
summary: '{{fields.image}}'
field: { label: Image, name: image, widget: image }
This creates a json data structure of an array of arrays of a string that looks like:
{
"images": [
[
"https://res.cloudinary.com/blahblahblah0.jpg"
],
[
"https://res.cloudinary.com/blahblahblah1.jpg"
],
}
The data structure I’m really after, is as flat as possible – just an array of strings:
[
'"https://res.cloudinary.com/blahblahblah0.jpg",
"https://res.cloudinary.com/blahblahblah1.jpg"
]
But this doesn’t seem to be possible via NetlifyCMS. (Is it??)
If the above structure is not possible, then how to at least achieve an array of strings as an object property?
{
"images": [
"https://res.cloudinary.com/blahblahblah0.jpg",
"https://res.cloudinary.com/blahblahblah1.jpg"
]
}
Thanks!