Skip to main navigation Zum Hauptinhalt springen Skip to page footer

Typo3 - dp_cookieconsent extension with site sets

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

1. Install the extension

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

- dirkpersky/dp_cookieconsent

3. add the Set files in the dp_cookieconsent extension. The folder structure should lokk like that::

Sets
. Cookieconsent
. config.yaml
. setup.typoscript

4. define site set name and label

name: dirkpersky/dp_cookieconsent
label: CookieConsent

5. set the typoscript paths

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

6. 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 :)

Quote of the day

Rules have no existence outside of individuals.