Personally I think naming your page.md files after the template is not good practice. This leads to multiple files on your website having the same filename. For example, a ten page site could have ten banner.md files. Why is this a problem?
- If you move one banner.md file to the wrong location, you’ve overwritten your work.
- If you have all banner.md files open in your text editor, how do you know which is which without looking more closely at the file?
So, grav allows this:
Page Name:
contact-banner.md
title: “Contact Banner”
template: modular/banner
##Banner
Some banner text
But I found two Problems:
- if you edit this content file in the admin interface it doesn’t show the correct template name from the “template” pull down menu. I found I have to select the template.
- if you change the content and save the file in the admin interface, it renames your file to banner.md.
This is a serious bug as it undoes the thought I’ve put into naming my files. And it prevents my editors from using the interface without undermining my efforts.
Am I doing something wrong or can this be fixed?