Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Can you create a default value file for page-level blueprints?

Started by Ace A. 4 years ago · 1 replies · 547 views
4 years ago

Grav allows you to define default values for theme-level configuration using theme-name.yaml in the theme root directory. Can you do the same for page-level blueprints?

Like if you create a item.yaml with a custom form, how will you be able to bundle another yaml file that loads default values for item.yaml?

last edited 12/17/22 by pamtbaau
4 years ago

@gravnoobie,

Like if you create a item.yaml with a custom form, how will you be able to bundle another yaml file that loads default values for item.yaml ?

Why would one want to do that? Do you have a certain use-case for that?

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago