Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.26 KB

EXTEND_IFRAME.md

File metadata and controls

35 lines (31 loc) · 1.26 KB

Create own iFrame-Types

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.

Example of new types

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.

Example of additional templates

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