Grav not saving custom fields from a blueprint

Hi ya,

Since im new to GRAV, i’m likely to be the error here.

I created a few supplemental fields to extend the default page view in my theme, but when i save the post only the page title is getting saved.

This is the code I wrote for the blueprint.

title: Homepage test
'@extends':
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        content:
          fields:
            content.headingone:
              type: text
              style: vertical
              label: Heading line one

            content.headingtwo:
              type: text
              style: vertical
              label: Heading line two

            linkbox:
              type: section
              title: Links
              underline: true

            linkbox.links:
              name: links
              type: list
              style: vertical
              label: Links
              fields:
                .text:
                  type: text
                  label: title
                .desc:
                  type: text
                  label: description
                .url:
                  type: text
                  label: URL

            textboxes:
              type: section
              title: Text boxes
              underline: true

            textboxes.items:
              name: textboxes
              type: list
              style: vertical
              label: Text boxes
              fields:
                .itemheading:
                  type: text
                  label: Heading
                .itemimage:
                  type: filepicker
                  folder: 'theme://images/icons'
                  label: Image
                  preview_images: true
                  accept:
                    - .png
                    - .jpg
                    - .svg
                .itemtext:
                  type: markdown
                  label: Blurb

            socials:
              type: section
              title: Socials
              underline: true

            socials.sociallinks:
              name: sociallinks
              type: list
              style: vertical
              label: Social links
              fields:
                .text:
                  type: text
                  label: title
                .url:
                  type: text
                  label: URL

Any ideas? I think i may have missed something obvious, but not sure how best to trace errors.

I’m running Grav 1.7.13 on a MAMP instance.

Not really sure about all this either (I’m new to Grav too) but I think the field names need to start with header.

So this is what I used for my custom fields…

          fields:
             header.shortDescription:
              type: text
              label: 'Short Description'
             header.price:
              type: number
              label: 'Price'

@suthen, To complement to @ozfiddler’s correct answer:

According to the doc How to name fields:

It’s important that fields use the header.* structure, so field content is saved to the Page Header when saved.

All working now! thanks all!