Blueprints: how to override 'content'?

I’ve only managed to add new fields to ‘advanced’ by using the example from learn.getgrav:
title: About
@extends’:
type: default
context: blueprints://pages

form:
  fields:
    tabs:
      fields:
        advanced:
          fields:
            overrides:
              fields:
                header.image:
                  type: mediapicker
                  folder: 'self@'
                  label: Image
                  preview_images: true
                  validate:
                    required: true

                header.sup:
                  type: text
                  label: Header_1
                  validate:
                    required: true

                header.heading:
                  type: text
                  label: Header_2
                  validate:
                    required: true

                header.text:
                  type: textarea
                  label: Main text
                  validate:
                    required: true

                header.icons:
                  type: list
                  style: vertical
                  label: Icons
                  fields:
                    .icon:
                      type: text
                      label: Font Awsome icon
                    .label:
                      type: text
                      label: Label

My logic is that I just replace ‘advanced’ with ‘content’, but it does not seem to work. Any guidance?

You might be confused because the word “overrides” appears in the blueprint you pasted. However, this means this blueprint will append some fields to the “overrides” section which appears when you browse a page, under the advanced tab.
Here is how you can append some fields to the content tab:

title: About
’@extends’:
type: default
context: blueprints://pages

form:
  fields:
    tabs:
      fields:
        content:
          fields:
            header.mynewfield:
              type: text
              label: This is a new text field

I hope this answers your question.

1 Like

Perfect! Thanks a lot!