plenti
plenti copied to clipboard
Can't edit theme content using CMS
When using a theme, if you haven't already manually created the type folders, when making edits through the CMS it won't be able to successfully copy the JSON from from the parent theme to the base site. You will get an error like:
"Unable to write to local file: open content/pages/_index.json: no such file or directory"
You can get around this by creating the folder yourself: mkdir content/pages
But ultimately Plenti should take care of simply creating the directory for you if it doesn't exist.
This should be resolved in v0.7.20.
Note: This is for locally editing, we still should test how the Git providers handle creating missing folders in filepaths when creating new files via their API's. For GitLab we're using the commits API which I believe does this automatically. For Gitea we're using repoCreateFile, which I'm not sure.