Extending default blocks in plugin

I created a plugin for all my custom blocks and modifications to default blocks. When I try to extend the default “heading” blueprint in my own blueprint like described in the “Extending Blocks” section in the references, my backend doesn’t load anymore. It gets stuck. The Kirby icon in the top right corner keeps spinning forever.

Here is my blueprint:

fields:
  blocks:
  type: blocks
  fieldsets:
    heading:
      extends: blocks/heading
      fields:
        customId:
          label: Custom ID
          type: text

I guess the problem is that “extends: blocks/heading” is not visible from within a plugin? Is there a way to achieve what I’m trying to do?

Thank you!

1 Like

I guess indentation issue on type line

fields:
  blocks:
      type: blocks
      fieldsets:
        heading:
          extends: blocks/heading
          fields:
            customId:
              label: Custom ID
              type: text

Thanks for your answer. Sorry! Actually the wrong indentation came from copying the code to the forum. For my blueprint I copied over the original code from the website. Indentation should not be the problem.

You are right. I found the issue in the documents, it will be fixed as soon as possible. Thanks for report :+1:

Ah, good to know. Then I will hardcode the original blueprint code + my own fields until the bug is fixed.

Thank you!

Issue has been fixed by @texnixe