- Install
- Configuration (Basics)
- Module / Content-Element / Insert-tags
- Styling & Customization
- Extend iFrame-Types
- Extend Cookie-Types
- Extended usage
- Content Security Policy
Basic settings must be maintained via the config/config.yml
file.
ℹ The following values are set by default, they do not need to be added to the YML file again.
contao_cookiebar:
consider_dnt: false
anonymize_ip: false
consent_log: false
disable_focustrap: false
lifetime: 63072000
storage_key: ccb_contao_token
iframe_types:
youtube:
- ce_youtube
vimeo:
- ce_vimeo
googlemaps:
- ce_html_googlemaps
- mod_html_googlemaps
Parameter | Description |
---|---|
consider_dnt |
Consider "Do not Track" browser setting |
consent_log |
Enables/disables consent logging. With each action by the visitor, information about the made choice of cookies is stored. |
anonymize_ip |
Anonymizes the visitor's IP address for each log entry using Symfony IP Address Anonymizer. |
disable_focustrap |
Can be used to disable the focus trap that was introduced in 1.17 . |
lifetime |
Time in seconds that specifies how long the cookie bar settings apply. If the time has expired, the cookie bar is displayed again. If 0 is passed, the cookie bar will never be displayed again automatically and can only be triggered via the version within the cookie bar configuration. (Default: 63072000 = 2 years) |
storage_key |
The key used for localStorage |
iframe_types.* |
An array of iFrame-Types and the corresponding templates. By customizing this array, any type can be added (see Create own iFrame-Types) |
The anonymization of all entries can be triggered via the console as follows:
vendor/bin/contao-console cookiebar:anonymizeip