I’m new to Grav (even though I’ve been discretely programming websites for many years). I currently have a problem with Grav that I cannot solve:
I want to have a list for a specific page in the admin panel—instead of the editor or in addition to the editor.
My blueprint works, but the data I enter into the list isn’t saved.
Here is a simplified example: its blueprint:
title: Termine
extends@:
type: default
form:
fields:
tabs:
fields:
content:
fields:
replace@: true
content:
type: list
label: Terminliste
fields:
zeit:
type: text
label: Zeit
bezeichnung:
type: text
label: Text
zusatz:
type: text
label: Zusatz
The admin panel with example entries:
After “Save,” the panel closes; the data isn’t saved and isn’t included in the list when the panel is reopened. And not in /user/pages/termine.md:
---
title: Termine
---
For comparison: Instead of the list, I used a simple text field:
title: Termine
extends@:
type: default
form:
fields:
tabs:
fields:
content:
fields:
replace@: true
content:
type: text
label: Termin
the admin panel: Sorry, I am not allowed to send a second screenshot here. But I promise, it works fine.
After saving, the panel remains open, the data is saved; in /user/pages/termine.md it says:
---
title: Termine
---
heute: alle kommen
What do I need to do to make this work with a list?
