-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't edit pages in collection #1190
Comments
@martinmodighkarlsson This is working for me in the latest CMS version (v1.3.5). Can you upgrade and try again? |
@tech4him1 I've upgraded to latest now, still doesn't work? Empty in cms even though the file exists with those fields: https://www.dropbox.com/s/z90wo4o4676n5v3/Sk%C3%A4rmklipp%202018-03-23%2022.59.37.png?dl=0 |
The problem is that we can't reproduce - if you can help us do that I'm certain we can figure it out. |
Steps to repro would be great. I'm suspecting that the CMS isn't able to parse the file correctly, and is therefore showing no content. |
@erquhart @tech4him1 I see, what do you need? Thanks! |
That just means we need a list of steps to take on our own to observe the bug ourselves. |
I see, well that's the problem. I don't get it, I've read and followed instructions in https://www.netlifycms.org/docs/configuration-options/#backend, https://www.netlifycms.org/docs/collection-types/ and looked in for example #679 |
@martinmodighkarlsson was this an existing page? If so, can you paste the |
Yes, it's an existing page:
If I rename this page or call for another, non existing page, in config.yml it doesn't show up. So it seems to be found, but not read properly? |
So... I don't know why I've happened to put two lines of "description" - but when removing one of them and having frontmatter and config.yml fields in same order (but hat is not really necessary, right?) I can edit the files. Sorry for making a fuzz about it! |
The order doesn't matter. Did taking out the duplicate fix the issue? |
@martinmodighkarlsson I just noticed you have two |
Taking out the duplicate fixed the reading part - I can now in the cms reach all fields I put in the config.yml. However, I get a 404 on the site. I'm guessing that's because I have fields in front matter not called for in config, and they're overwritten? Like for example "published: true". |
Right, if it's not in the config, Netlify CMS won't write it on save, so that published field won't be present. When in doubt, check the commits that are being made by Netlify CMS in your repo to make sure the output is what you expect. |
- Do you want to request a feature or report a bug?
Bug or handling error (by me :))
- What is the current behavior?
Can't edit pages in collection
- What is the expected behavior?
Edit at least body content in cms
- Please link or paste your
config.yml
below if applicable.Page looking like this, i.e. cms doesn't pull anything from the file but can find it: https://www.dropbox.com/s/fvdggzp3oc3txi5/Sk%C3%A4rmklipp%202018-03-23%2017.04.27.png?dl=0
https://www.dropbox.com/s/ryec38wrc8o7e2l/Sk%C3%A4rmklipp%202018-03-23%2017.05.19.png?dl=0
The text was updated successfully, but these errors were encountered: