Provides frontend shelf cookiebar component 1.0.0 implementation for Drupal 8
- Simple cookiebar that closes when close is pressed.
- Automatically assumes users consent when being closed.
- If you have satis.tamtam.nl already available in your composer.json file go to step 2. Otherwise add satis to your composer.json with the following command:
composer global config repositories.satis composer https://satis.tamtam.nl - Add dd_cookiebar to your project through:
composer require drupal/dd_cookiebar:1.0.0 - Enable the module with
drush en dd_cookiebar -yand the default cookiebar markup will be automatically available in the page_bottom variable (html.html.twig) - Copy dd_cookiebar/templates/dd-cookiebar.html.twig to your own theme templates folder and override the defaults to your own preference. Alternatively you can override the variables in through the hook_page_bottom
- If you goto /admin/config/people/dept-cookie-settings in the admin interface you can attach the correct cookie PDF and set the correct cookie version
- You can disable or extend the default component assets with the *.libraries.yml file for example by adding the following to your THEME.libraries.yml:
dd-cookiebar:
version: 1.x
css:
theme:
component/cookiebar.css: {preprocess: false}Please refer to the frontend Readme.md
- Please note the following optional step: install config_ignore and add
dd_cookiebar.settings.*to the ignored config to prevent overriding on config import.