Allegrodesign
Alle Blog Posts

Typo3 - dp_cookieconsent extension with site sets

Datum:
20. März 2026
Tags:
Unix

Dirk Perskies Cookieconsent extension can be installed on a Typo3 installation using site sets. Right now by using a mix of yaml and typoscript files

Install the extension

Add the dependency in the config.yaml file unter sites → [your site name] → config.yaml


- dirkpersky/dp_cookieconsent
  1. add the Set files in the dp_cookieconsent extension. The folder structure should lokk like that:

Sets
.   Cookieconsent
.       config.yaml
.       setup.typoscript

define site set name and label


name: dirkpersky/dp_cookieconsent
label: CookieConsent

set the typoscript paths


@import 'EXT:dp_cookieconsent/Configuration/TypoScript/constants.typoscript'
@import 'EXT:dp_cookieconsent/Configuration/TypoScript/setup.typoscript'

if variables don’t work, the now use the actual values:


 settings {
       url = 41
       target = _blank
       theme = edgeless
       position = bottom-right
       type = extend
       revokable = 1
       reloadOnRevoke = 1
       storagePid = 124
       
       checkboxes {
           statistics = 0
           marketing = 0
           media = 0
       }
       overlay {
           notice = 1
           box {
               background = #ffffff
               text = #000000
           }
           button {
               background = #000000
               text = #ffffff
           }
       }
       palette {
           popup {
               background = #ffffff
               text = #000000
           }
           button {
               background = #000000
               text = #ffffff
           }
       }
   }
}

that should do the trick :)