Invalid field type ("blocks")

I have hit the wall on this issue and I can’t work it out any help would be much appreciated :slight_smile:

 <?php foreach ($page->blocks()->toBlocks() as $block): ?>
    <section id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
    <?php snippet('blocks/' . $block->type(), [
        'block' => $block,
    ]) ?>
    </section>
<?php endforeach ?>

Blueprint:

tabs:
  content:
    label: Content
    icon: text
    sections: 
      fields:
        type: fields
        fields:     
          # Blocks
          blocks:
            label: Page Builder
            type: blocks
            fieldsets:
              - textblocksmall

folder structure:

snippets > blocks > *.php

Which version of Kirby are you using?

Did you define this custom block type anywhere?

Ah it’s 3.4.3 that would be why…

Is it possible to upgrade this project to 3.5?

Yes, sure, but see the changelog with breaking changes:

https://getkirby.com/releases/3.5