Block-factory -> render to page

I have followed the excellent https://getkirby.com/docs/cookbook/panel/block-collection#general-plugin-setup cookbook.

I’m stuck as to how to call this into the page.
Works perfectly in the panel.
Do I simply call the snippet ?

<?php  snippet("plugins/block-factory/snippets/blocks/custom-video.php") ?>

No, when you use toBlocks(), the block will automatically be rendered with the snippet.

If you want to call the snippet manually, you just call it like this:

snippet('blocks/custom-video')
1 Like