Hey everyone,
I am getting started with Kirby and try to use a custom blog with custom html (using the starterkit for trial purposes)
There is the file
note.yml
columns:
- width: 1/1
# This columns only has a single field
fields:
text:
type: blocks
fieldsets:
- heading
- text
textsnippet:
name: textsnippet
tabs:
content:
fields:
text:
type: text
the file
textsnippet.php
<?php if ($block->text()->isNotEmpty()): ?>
<div>
<?php $block->text()?>
</div>
<?php endif ?>
and finally
notes.php
<article class="note">
<div class="note text">
<?= $page->text()->toBlocks() ?>
</div>
</article>
While the other two custom blocks available in the starterkit render perfectly fine, the text which I add through the custom block “textsnippet” does not show up. Does anyone see what I am missing?
Many thanks!