Example: Config Blueprints
It's common to add some configuration options to site.yaml, to be shown in the site content.
To make those options configurable via Admin panel, add some fields to user/blueprints/config/site.yaml. For example:
YAML
1extends@:
2 '@parent'
3
4form:
5 fields:
6 content:
7
8 fields:
9 myfield:
10 type: text
11 label: My Field
Will add the 'My Field' input type, appending it to the Content section of the Site configuration.
You can add entire new sections too, for example:
YAML
1extends@:
2 '@parent'
3
4form:
5 fields:
6 anothersection:
7 type: section
8 title: Another Section
9 underline: true
10
11 fields:
12 myfield:
13 type: text
14 label: A label
15 size: large