Closed Steffo99 closed 2 months ago
@Steffo99 Thanks for the feedback!
Unlike Collections, Documents cannot create or remove files, only edit the existing one. But maybe I can relax this restriction and allow to create it if it doesn't exist.
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: