Hello
I have a blueprint for the Grav admin module, so the user can enter the right information into the frontmatter. With the text field, the corresponding tab takes the related value from the frontmatter field that corresponds and places it in its place inside the field of the editing form. But the select field does not work this way, and each time I save a page the default of the select overrides the corresponding already existing frontmatter field data.
For example:
header.property.type:
type: select
label: THEME_QUARKCUSTOM.PROPERTY.TYPE
help: Select the type of property
size: small
default: {{ header.property.type|raw }}
options:
Apartment: Apartment
House: House
Land: Land
Even if I set process twig first, this does not work:
default: {{ header.property.type|raw }}
In the frontmatter I have:
property:
type: House
But when saving, the first option is Apartment, and it overrides House on the frontmatter field: type.
How can I resolve this problem of automatically setting the default of the select with what is already in the corresponding frontmatter field? Since always a new page is copied from an old page, then I can change the option or leave what it is originally in the field. But the select does not allow me to do so.
Thanks for any help