I have another question, I still don’t understand how to refer to different text blocks on one page in my php. I created a snippet for one of the text blocks in snippets/blocks, and it’s called definition.php. Let’s say it appears the second or the third in the text blocks list on my page in the panel (let’s say I have 4 different text blocks).
In my snippet code I say
<?php /** @var \Kirby\Cms\Block $block */ ?>
<?php foreach ($page->blocks()->toBlocks() as $block): ?>
<?= $block->text(); ?>
<?php endforeach ?>
This will grab ALL the text blocks on that page. How can I grab only a specific text block? Thank you!