Hi guys. I have a small problem. I have a page services.md (folder: _services). It is made of 12 typical "icon, heading text" text-boxes. Every box can be edited in admin. Works like a charm. Now the problem is that in side services.md besides all the textboxes I have title variable and one more variable that I need in template and that variable is being deleted out when grav overwrites the file with new content (title is still there though). How can this be avoided? thank you!
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Archive
am I right in thinking that if I have a custom blueprint file for that page that I also have to add that header field in the blueprint file?
got it :) had to add the field to the blueprint file. btw grav devs thanks for letting me get away with this options for toggle :) just what I needed :)
YAML
name: active_by_default
type: toggle
label: Default tab
options:
basic: basic
expert: expert
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1318 | 9 years ago | ||
| 2 | 915 | 9 years ago | ||
| 2 | 4044 | 9 years ago | ||
| 1 | 2920 | 9 years ago | ||
| 3 | 1104 | 9 years ago |