-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unexpected document behaviour #16
Comments
@Steffo99 Thanks for the feedback! Unlike Collections, Documents cannot create or remove files, only edit the existing one. |
Forgive me if I ask, but... why is the restriction there? It feels a bit counter-intuitive, is there a technical reason for it? |
No technical reason. It's just that the CMS has been designed to edit an already created website. And while collections can grow over time (because you can create new posts in a blog, for example), documents are intended to edit files already existing (like a json file with settings, a special page like the homepage, etc). |
Thanks for implementing this! |
Heya, since this repository seems to be pretty new, I hope you don't mind if I open a couple issues about my experience in learning to use LumeCMS, so that it can be made even easier to use!
What I did
I defined a document with the following code:
Then I went to
http://localhost:3000/admin/document/site
to set a title.What I expected
I expected an empty
site.yml
file to be created, and then it to be filled with what I entered in the CMS form.What happened
The webpage returned:
The logs returned:
How I worked around the issue
By manually creating a
site.yml
file containing the following:The text was updated successfully, but these errors were encountered: