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

Override templates names displayed in new page form

Started by Muut Archive 9 years ago · 1 replies · 424 views
9 years ago

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

9 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 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2938 9 years ago
Archive · by Muut Archive, 9 years ago
3 1111 9 years ago