Esther
June 18, 2020, 3:43pm
1
when i start the project and go to Content Manager
I get the following error
Error loading the CMS configuration
The config.yml file could not be loaded or failed to parse properly.
Error message: Error: Failed to load config.yml (404)
Here is config.yml
backend:
name: git-gateway
branch: master
media_folder: static/img
public_folder: /img
collections:
name: ‘about’
label: ‘about’
folder: ‘pages/about’
create: true
slug: ‘index’
media_folder: ‘’
public_folder: ‘’
path: ‘{{title}}/index’
editor:
preview: false
fields:
{ label: ‘Title’, name: ‘title’, widget: ‘string’ }
{ label: ‘Publish Date’, name: ‘date’, widget: ‘datetime’ }
{ label: ‘Description’, name: ‘description’, widget: ‘string’ }
{ label: ‘Body’, name: ‘body’, widget: ‘markdown’ }
jen
June 18, 2020, 11:10pm
2
Hey @Esther ,
When I go to that link, I see the “Login with Netlify Identity” button. Is that what you’re seeing now or are you getting this issue after logging in?
Esther
June 19, 2020, 9:07am
3
Yes…That is it
It was supposed to show the pages I have in the live site so I can update/edit it but I can’t find any
fool
June 24, 2020, 1:21am
4
OK. And have you configured the rest of your directories, like you did the “about” section? You’ll need one entry per directory that holds markdown files. Here’s an example from a site I use the CMS on:
collections:
- name: "home"
label: "Home"
files:
- name: "homepage"
label: "Home Page"
file: "content/_index.md"
create: true
slug: "{{slug}}"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Weight", name: "weight", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "onboarding"
label: "Onboarding"
folder: "content/onboarding"
create: true
slug: "{{slug}}"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Weight", name: "weight", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "emergencies"
label: "Emergency Response Docs"
folder: "content/emergencies"
create: true
slug: "{{slug}}"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Weight", name: "weight", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
I have about 20 of those stanzas, since I have about 20 content categories in separate directories on my site.
derahn
September 21, 2020, 7:42am
5
Hi, I am also presently having issues running the netlify cms.
I keep getting this error
The pattern
property is expecting two array items seperated by a comma, the regex and error message, like so:
pattern: ['.{12,}', "Must have at least 12 characters"]