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

Default values for page settings

Started by Muut Archive 10 years ago · 3 replies · 469 views
10 years ago

Hi,

For one specific Grav template I want to have the routable and visible page settings default to No when pages are created using that template. I had a brief go at doing this using a blueprint but couldn't figure it out. How can I achieve this?

10 years ago

Am on mobile, but you have to modify new.yaml blueprints which is on the grav admin plugin folder. Hope it helps!

10 years ago

you are able to inheritate from the template, so you won't have troubles if you update it. Here's an insightful blog post about this.

If you have inherited the theme you want to customize you are able to overwrite the fields you need like in the example here. If you found the field you want to insert the default value just use the field attribute default.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago