ride / web-cookiemonster
Automatic notification of cookie usage in a Ride application
Installs: 323
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- ride/app: ^1.0.0
- ride/lib-event: ^1.0.0
- ride/lib-mvc: ^1.0.0
- ride/web: ^1.0.0
- ride/web-i18n-expose: ^1.0.0
This package is auto-updated.
Last update: 2024-12-13 00:52:08 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