Hi there,
simple Question:
Is there any Cookie Banner plugin solution for Kirby5?
What du you use?
Thanks!
Hi there,
simple Question:
Is there any Cookie Banner plugin solution for Kirby5?
What du you use?
Thanks!
Did you see this one: Kirby Consent Gate | Kirby CMS Plugins
Yes, I saw that. I also think it’s really great that, for example, a banner appears before YouTube videos. Unfortunately, the cookie banner can’t really be configured properly—for instance, I need a banner in German, and while the documentation says there’s a German translation, it doesn’t explain how to enable it. : (
That’s why I’m still looking for other solutions and would appreciate any input on what you all use.
Hi,
It will use German or English on a multi-language site. On a single-language site, you also have to set the locale manually.
However, Kirby has had a known bug since 2019 where it renders the English version by default, even if the German locale is set.
A solution is to add a hook for I18n:
'route:before' => function () {Kirby\Toolkit\I18n::$locale = 'de';}
My advice is to always use a multi-language configuration from the start. Switching from single-language to multi-language later can turn into a real headache.
Best
Oh, good to know. This is the first time I’ve heard about this bug.
Is there a fix planned?
Are you referring to an existing issue on Github? If so, please let me know which one.
seems to be this one:
okay, this Hook works:
'route:after' => function () {
Kirby\Toolkit\I18n::$locale = 'de';
},
‘route:before’ => (…) does not work for me.