Configuration
The extension requires minimal configuration. After including the static TypoScript template (see Installation), the consent script and cookie button are rendered automatically.
TypoScript setup
The static TypoScript template [kroener.DIGITAL] Prive Consent configures:
lib.priveScript— aUSERobject that callsDatabaseService->renderBannerScript()to output the consent scriptpage.footerData— inserts the cookie button HTML and consent script before</body>page.includeCSS— loads the cookie button stylesheet
The footerData keys use crc32('ok_prive_cookie_consent') to avoid
collisions with other extensions.
Cookie button styling
The floating cookie settings button is styled via:
Resources/Public/Css/prive-cookie-button.css
To override the default appearance, add custom CSS in your site package that targets the cookie button elements. The brand colours used by default are:
- Primary:
#f05722 - Secondary:
#0fa8dd
Prive account
The JavaScript snippet that powers the consent banner is provided by Prive. You need a Prive account to obtain the script. Paste the script into the backend module (see Usage).
Refer to the Prive documentation for configuring which cookies are managed, consent categories, banner appearance, and language settings.