- Install
- Configuration (Basics)
- Module & Content-Element
- Styling & Customization
- Extend iFrame-Types
- Extend Cookie-Types
- Extended usage
By expanding the config/config.yml
file, you can add as many iFrame types as you want to respond to different vendors / services.
Types for blocking Youtube, Vimeo and Google Maps iFrames are already delivered by default.
Add a new type and the template to which you have to react:
contao_cookiebar:
iframe_types:
vendortype:
- ce_html_vendortype
Now another option "vendortype" appears in the cookie type "iFrame" within the select field "iFrame types". Select this to block all iFrames with the template ce_html_vendortype
until the cookie is accepted.
If you want to supplement your own templates with an already existing iFrame type, these can also be considered.
contao_cookiebar:
iframe_types:
googlemaps:
- ce_my_additional_google_template