Hi everyone,
I’ve updated kirby from 3.5.0 to 4.5.0., removed getkirby/editor and replaced type: editor
with type: blocks
in my blueprints.
In the panel everything seems to work fine but when I update a page the content of the blocks is not shown anymore in the frontend.
Here is my blueprint:
fields:
text:
type: blocks
pretty: true
I used custom snippets for my blocks. But also when just trying to render all blocks with toBlocks()
there is no output:
<?= $page->text()->toBlocks() ?>
When trying to loop through the blocks there is nothing rendered like stated in the docs.
<?php foreach ($page->text()->toBlocks() as $block): ?>
<div><?= $block ?></div>
<?php endforeach?>
At least the type of the block is shown:
<?php foreach ($page->text()->toBlocks() as $block): ?>
<div><?= $block->type() ?></div>
<?php endforeach?>
Does anyone have an idea what I could have missed?
Thanks
Chris