Blocks field: Renaming core block in config?

Hi, @bastianallgeier, is there a config option to rename the core block in the Blocks field?

Can’t find it in the docs, but I could swear I saw it in the temporary docs in development.

If I got it right, you can extend it by putting your own name in your blocks field.

fields:
  blocks:
    type: blocks
    fieldsets:
      # extend heading block with your own name
      ownName: blocks/heading
1 Like

@ahmetbora is right. You can also define the default blocks that will be used if no fieldsets are specified: https://getkirby.com/docs/reference/panel/fields/blocks#configuration

1 Like

But the question was about defining block names in the config…

Looks as if this works in config:

  'blocks' => [
      'fieldsets' => [
        'text' => [
          'label' => 'Text',
          'type' => 'group',
          'fieldsets' => [
            'text' => [
              'extends' => 'blocks/text',
              'name' => 'SuperText'
            ],
            'heading'
          ]
        ],
        'media' => [
          'label' => 'Media',
          'type' => 'group',
          'fieldsets' => [
            'image',
            'video'
          ]
        ]
      ]
    ]
1 Like

Thank you all, @pixelijn added just the thing I asked for.