Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Grav removes header variable from .md

Started by Muut Archive 9 years ago · 2 replies · 558 views
9 years ago

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!

9 years ago

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?

9 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago