Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Override templates names displayed in new page form

Started by Muut Archive 10 years ago · 1 replies · 497 views
10 years ago

Hi,
I need to override templates names displayed in "new page" form.
Does anyone know the proper way to do that?

10 years ago

I found it by myself. Imagine you want to override the template name "Default" in the new page form, you just have to create a translation file in yaml having a key "Default" (don't forget to upper the first letter).
For example:

TXT
// Location: /user/themes/custom/languages/fr.yaml 
Default: Page de contenu

You will now see "Page de contenu" and not "Default" in your select box anymore.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2280 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago