You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from Grav v1.6.31 to v1.7.0-rc.20 I noticed that in the Admin Panel I'm not able to see and edit the content of the pages anymore. The title and content fields are blank. The pages however are rendered in a browser. When I change the title and content fields with random text it is saved. But it does not replace the content when I refresh the browser. So the files are not overwritten. This is because it saves the new content in e.g. default.md, while the actual content is in default.nl.md.
When I disable the NL language as the default, the content becomes visible and editable as it was in Grav 1.6. Am I missing something here? The documentation for 1.7 doesn't seem to be any different. The file extension for the language such as nl or fr are still in use.
A workaround to get things working in the admin panel is to rename all the files without the language file extension. I did this with this command: find user/pages/ -name "*\.md" -type f -exec rename -v .nl.md .md {} +
Which finds all files with the .md extenstion and renames all those files that have .nl.md to .md. Hence removing the Dutch language extension.
After that I'm able to see and edit the files as before. Also clear the language settings in Configuration --> Languages.
The text was updated successfully, but these errors were encountered:
As a workaround, add another language to the list and admin starts working.
I wouldn't rename the files unless you want to set include_default_lang_file_extension: false, otherwise you end up having two different file extensions.
Software in use
Issue description
After upgrading from Grav v1.6.31 to v1.7.0-rc.20 I noticed that in the Admin Panel I'm not able to see and edit the content of the pages anymore. The title and content fields are blank. The pages however are rendered in a browser. When I change the title and content fields with random text it is saved. But it does not replace the content when I refresh the browser. So the files are not overwritten. This is because it saves the new content in e.g. default.md, while the actual content is in default.nl.md.
When I disable the NL language as the default, the content becomes visible and editable as it was in Grav 1.6. Am I missing something here? The documentation for 1.7 doesn't seem to be any different. The file extension for the language such as nl or fr are still in use.
A snippet from my system.yml:
Workaround
A workaround to get things working in the admin panel is to rename all the files without the language file extension. I did this with this command:
find user/pages/ -name "*\.md" -type f -exec rename -v .nl.md .md {} +
Which finds all files with the .md extenstion and renames all those files that have .nl.md to .md. Hence removing the Dutch language extension.
After that I'm able to see and edit the files as before. Also clear the language settings in Configuration --> Languages.
The text was updated successfully, but these errors were encountered: