Skip to content

tjerkruyter/drupal-dd_cookiebar

Repository files navigation

Dept cookiebar

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.

Requirements

Installation

Drupal

  1. 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
  2. Add dd_cookiebar to your project through:
    composer require drupal/dd_cookiebar:1.0.0
  3. Enable the module with drush en dd_cookiebar -y and the default cookiebar markup will be automatically available in the page_bottom variable (html.html.twig)
  4. 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
  5. 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
  6. 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}

Drupal documentation library

Frontend

Please refer to the frontend Readme.md

Optional step (config ignore)

  1. Please note the following optional step: install config_ignore and add dd_cookiebar.settings.* to the ignored config to prevent overriding on config import.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published