I’m trying to get a file-based collection working, that will allow me to edit some data files from my site.
Here’s a snippet of what I have, under collections
:
- name: "data"
label: "Data"
files:
- name: "company"
label: "Company"
file: "data/company/links.yml"
extension: "yml"
fields:
- name: "links"
label: "Links"
widget: "list"
fields:
- {label: "Name", name: "name", widget: "string"}
- {label: "Link", name: "link", widget: "string"}
And the yaml file, for now:
links:
- name: 'About'
link: '/about'
In the CMS, “Data” shows under my “Collections”, but that area is blank. How can I show and edit “Links”?