KirbyTag no longer working - help required thanks

Hi

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
Nick

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: https://getkirby.com/docs/reference/plugins/extensions/kirbytags

1 Like