alembic-netlifycms-kit icon indicating copy to clipboard operation
alembic-netlifycms-kit copied to clipboard

Meta doesn't exist and prevent netlify cms to handle correctly the element

Open clawfire opened this issue 5 years ago • 4 comments

https://github.com/daviddarnes/alembic-netlifycms-kit/blob/462fa9245bac5abb61da265fba35d3392a49aed5/admin/config.yml#L24

If you're putting your date here, it will be invisible somehow to the CMS and it will crash when you try to access and element to edit it.

clawfire avatar Mar 19 '20 20:03 clawfire

@clawfire that's odd, first time hearing about this. To be honest I'm not sure what that field is for, it's not on pages. Is there documentation on it in the Netlify CMS docs?

daviddarnes avatar Mar 20 '20 09:03 daviddarnes

There is no reference of meta field in Netlify CMS because it doesn't exist 😁 If you put date for example, as you did in your config, under meta, you'll still able to create new content and the field is visible BUT you can't :

  1. access an element to edit it, it raises an error since date isn't present
  2. Netlify CMS don't see it as available information and don't display it in summary on elements

I would suggest moving all the settings under meta into fields to correct it, as your repo and config file is pointed out as reference in the Netlify CMS doc :p

clawfire avatar Mar 20 '20 09:03 clawfire

This is still a bug, full error from Netlify CMS /admin page

Error loading the CMS configuration
Config Errors:
'collections[0].meta' should be object
Check your config.yml file.

I'm also unfamiliar with this meta field, but I did find a slightly obscure reference to it in the docs here: https://www.netlifycms.org/docs/beta-features/#nested-collections

kylegrover avatar Sep 12 '20 00:09 kylegrover

@kylegrover gah, I need to investigate this more. Maybe speak to someone from the CMS team. I’m a bit stumped on it

daviddarnes avatar Sep 12 '20 11:09 daviddarnes