I’m a beginner at using Kirby. I’m hopelessly looking for a solution.
I have to make custom blocks but they don’t appear in my front-end page.
I may be wrong on calling them in my principal template ?
Here is an excerpt of the yml page (about.yml) calling my custom block (“onecol”)
main
main:
width: 1/3
sections:
# a simple form
content:
type: fields
fields:
blocks:
type: blocks
fieldsets:
- heading
- text
- audio
- card
- button
onecol:
name: one col text
fields:
titre:
type: text
textt:
type: textarea
the yml file from onecol.yml is the following (located in the site/blueprints/blocks/onecol.yml)
name: Newblock
icon: tag
preview: text
wysywig: false
fields:
text:
type: text
and I’m calling it this way in my template, about.php
<?= $page->onecol()->toBlocks() ?>
Where am I wrong? Do I have to call it from a snippet? and how?
(it appears well in the panel)
Many thanks in advance…