Closed Arbee4ever closed 1 year ago
Just checked the code and I think I can fix it quickly. The Netlify/Decap CMS doc actually shows a nested field like language.en
but I’ve overlooked such cases. So it’s a bug in Sveltia 🙃
Oh... but would that also allow accessing array elements with array[index]?
Sveltia CMS uses the flat library to “flatten” objects/arrays. For an array, the field name would be something like list.0.field
to match the flattened object 🙂
The fix is in! 🎉
I have a widget that with multiple values inside, would it be possible to make "sortable_fields" accept something like "list[0].field" to sort by that field?