I am in the process of creating my first custom plugin and have followed tutorials such as the one found at Creating a custom block type from scratch | Kirby CMS. I have set up all the necessary files and folders, and it is functioning properly in the panel and it results well in the page content txt.
However, when I want to render it in the front-end, the block doesnt appear.
<div class="block-type-mediaplayer">
/*snippet should be here*/
</div>
As you can see, its type is well render. I believe it cannot access its snippet (???). However I followed the guide and made my inded.php like this:
This code should never be used without a check if the file exist before calling url().
But if it doesn’t work with all this code removed, then there seems to be another issue. Are you rendering the blocks normally with $page->blocksfieldname()->toBlocks()?
Just on a side note: If I were you, I’d use either always the short echo tag <?= (preferable) or <?php echo but never mix both in your code. Consistent code styles are important for readability.