ride/web-cookiemonster

Automatic notification of cookie usage in a Ride application

1.0.0 2016-10-14 14:48 UTC

This package is auto-updated.

Last update: 2024-04-12 23:22:51 UTC


README

This module adds a message to the HTML view when cookies are used. This to comply with the EU regulations about cookies.

Usage

You can overwrite the cookiemonster template if you include a div with id="cookiemonster", preferably a text/template node. So it won't be visible on the page.

<script type="text/template" id="cookiemonster">
    <div class="container">
        <h2 class="cookiemonster__heading">{translate key="title.cookiemonster"}</h2>
        <p>{translate key="label.cookiemonster"}</p>
        <a href="#" class="cookiemonster__accept js-cookie-accept btn btn--sml">{translate key="button.cookiemonster"}</a>
    </div>
</script>

Parameters

  • cookiemonster.force: Flag to see if the cookiemonster omits the cookie check

Related Modules

Installation

You can use Composer to install this application.

composer require ride/web-cookiemonster