KirbyTag no longer working - help required thanks


I’ve just upgraded my site from Kirby 2 to 3 and everything has crossed over fine apart fro the KirbyTag I wrote. I’ve seen that I now need to create a plug-in but so far every time I do, the site breaks so I’m clearly doing something wrong!

If someone could please walk me thru the process that would be amazing! My original tag code looks like this:

Thank you

You have to register your tags using Kirby’s new plugin wrapper:

Kirby::plugin('nickprolix/mytags', [
    'tags' => [
        'blocpic' => [
            'html' => function($tag) {
                return 'blablabla';

See the docs for details:

1 Like