Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Custom page names overwritten by admin interface

Started by Brian McWilliams 7 years ago · 1 replies · 395 views
7 years ago

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?

7 years ago

@bmcwilliams, if you want to suggest a new feature, or report a bug, you will have the highest chance of a response by the developers if you create an issue in one of the github repositories of Grav. That is where the devs "live" and manage issues, feature request and pull requests.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago