Customize Cookie Consent - benjaminkott/bootstrap_package GitHub Wiki
Translation
Use TypoScript to override provided language labels with custom settings. If you want to help better defaults for the texts in your language please visit the TYPO3 Translation Server https://translation.typo3.org/projects/TYPO3.ext.bootstrap_package/
plugin.tx_bootstrap_package {
_LOCAL_LANG {
default {
cookieconsent.common.header = We got Cookies!
cookieconsent.common.message = This website uses cookies to ensure you get the best experience on our website.
}
de {
cookieconsent.common.header = Wir haben Kekse!
cookieconsent.common.message = Diese Website verwendet Kekse, um sicherzustellen, dass Sie die beste Erfahrung auf unserer Website machen können.
}
}
}
Defaults
| Language Key | Default Value |
|---|---|
| cookieconsent.common.header | Cookies used on the website! |
| cookieconsent.common.message | This website uses cookies to ensure you get the best experience on our website. |
| cookieconsent.common.dismiss | Got it! |
| cookieconsent.common.allow | Allow cookies |
| cookieconsent.common.deny | Decline |
| cookieconsent.common.link | Learn more |
JavaScript
There are currently no defined defaults for all options of the cookie consent. It´s indented to be customized by the user since the needs vary a lot depending on project and use-case.
Events
| Event | Description |
|---|---|
| bk2k.cookie.enable | Cookies allowed |
| bk2k.cookie.disable | Cookies disallowed |
| bk2k.cookie.revoke | User revoked choices |
| bk2k.cookie.popupopen | Cookie consent opened |
| bk2k.cookie.popupclose | Cookie consent closed |