I am currently building my first site with Kirby and try to learn how to use a custom plugin. So I look at several plugins tutorial and finally try one : Creating a custom block type from scratch.
I have created all the needed files and folders, and it works in the panel block fields !
But one problem remains when i try to have a render of it, by editing the index.js file, it doesnāt workā¦
panel.plugin("gravezone/dossierspub", {
blocks: {
audio: {
template: `
<div>
Listen to Mr. Pod talk about stuff
</div>
`
}
}
});
Iām quite sure that I forgot something somewhere, but I canāt find where I made the mistakesā¦ Can anyone help me ?
Hm, the code itself is exactly like in the docs. Have you used the same plugin name as in the index.php file? And put the file right next to index.php?