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

Changes inside custom fields not being saved

Started by Muut Archive 10 years ago · 2 replies · 440 views
10 years ago

This is my first Grav site. I'm building a (pretty simple) custom site for a client and I'm having trouble setting up the custom fields. Fields are appearing fine in the admin interface, but when I enter some text and hit save the changes are lost - despite getting the 'Successfully Saved' message.

Any help would be much appreciated.

This is happening on all blueprints with custom fields. The stock fields work fine.

Example blueprint

YAML
title: Home
'@extends':
    type: default
    context: blueprints://pages

form:
    fields:
        col1-heading:
            type: text
            label: Heading
        col1-content:
            type: editor 

        col2-gravH:
            type: section
            title: Column 2
            underline: true
        col2-heading:
            type: text
            label: Heading
        col2-content:
            type: editor

        col3-gravH:
            type: section
            title: Column 3
            underline: true
        col3-heading:
            type: text
            label: Heading
        col3-content:
            type: editor
10 years ago

Alright so solved this myself - I was being a numbskull and not prefixing the field names with header. e.g.

YAML
fields:
   header.col1gravH:
      type: section
      title: Column 1
      underline: true

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago