EU laws require sites to let the user know if cookies are stored on their devices. Depending on EU country there are different types of compliance implementation. Usually scripts like this one only offer notifications and they don't implement real opt-in or opt-out compliance. This plugin offers October CMS implementation of Cookie Consent JS, additional Twig template function for easier checks whether or not to serve cookies and additional JS that cleans all cookies if user declines to accept cookies.
This plugin integrates the popular Cookie Consent tool in your theme. It requires the theme to have the
Simply configure the settings from the backend interface (Settings -> MISC -> EU Cookie Law Madness) and then it automatically runs on the frontend.
There is a view helper
allow_cookies that you can call from twig template.
If you need to access user decision, cookie is named
cookieconsent_status unless you renamed it in configuration.
Cookie can have values:
Found the plugin useful on 21 Jan, 2021
I select that this plugin is useful just for the backend options.
VM9315 cookieconsent.min.js:134 Uncaught TypeError: Cannot read property 'firstChild' of null at n.u (VM9315 cookieconsent.min.js:134) at n.initialise (VM9315 cookieconsent.min.js:284) at new n (VM9315 cookieconsent.min.js:74) at VM9315 cookieconsent.min.js:496 at Object.e.getCountryCode (VM9315 cookieconsent.min.js:508) at Object.e.initialise (VM9315 cookieconsent.min.js:495) at (index):85 n.initialise @ VM9315 cookieconsent.min.js:284 n @ VM9315 cookieconsent.min.js:74 (anonymous) @ VM9315 cookieconsent.min.js:496 e.getCountryCode @ VM9315 cookieconsent.min.js:508 e.initialise @ VM9315 cookieconsent.min.js:495 (anonymous) @ (index):85
Something was wrong and I can't figure out what. I followed the instructions.
Romain 'Maz' BILLOIR
Found the plugin useful on 28 Apr, 2020
This plugin is good and do the job.
No partial is used so we can't override it to fully customize it from scratch, it's really a shame on a CMS where the partials is the law for override plugin's components.
Found the plugin useful on 22 Oct, 2019
Really nice plug-in... multilinguage would be really sweet!
Found the plugin useful on 26 May, 2017
Support this plugin multilanguage website? For example with https://octobercms.com/plugin/rainlab-translate
Miha Trtnik author
Replied on 2 Jun, 2017
Thanks for review. At the moment I dont support rainlab translate since I have build this extension for my own projects and didn't need multilingual support there. If I will need this functionality I will surely share the code for it.
I would also gladly approve any pull requests ;)
CS locale added
Nov 09, 2016
Oct 10, 2016