nomidi / silverstripe-cookie-consent
Cookie Consent by insites - implementation for Silverstripe
Installs: 574
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
Language:Scheme
Type:silverstripe-vendormodule
Requires
- silverstripe/asset-admin: ^1.1
- silverstripe/assets: ^1.1
- silverstripe/config: ^1
- silverstripe/framework: ^4.1
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-12-10 02:25:37 UTC
README
Silverstripe Cookie Consent is a module which enables to configure the cookie consent JavaScript plugin from Insites simply via the Administrator Backend.
Requirements
- Silverstripe CMS ~3.2
Installation
composer require nomidi/silverstripe-cookie-consent
Alternatively simply download the zip file from github.
After installation run a run dev/build?flush=1
on your project.
Configuration
The Configuration is done via the Settings
and the Cookie Consent
tab.
Please keep in mind that if you are using the advanced options you will have to ensure that the Cookies and there functionality
act accordingly. With this module you are just setting the configuration for CookieConsent but it will not change the cookie behaviour.
Is Active
Defines if the Module is in avtive state or not.
Use CDN?
If ticked the plugin will load the css/js from a CDN (cloudflare).
Position // Layout // Settings
A demonstration on the effect of these parameters can be found on the download page at Insites - Download Page.
Colours
For the colours it is possible to use HEX Values with leading # or RGBA Values (like rgba(64,64,64,.8) to include some transparency).
Compliance Type - Advanced
Please be aware that you can configure the advanced versions via the Site Configuration. But this will have no effect to your website. If you are planning to use the opt-in or opt-out version of this module you will have to ensure on your own that the website works accordingly. It is advised to use callback hooks for the advanced workflow. Information on that can be found at Insites - Disabling Cookies
Translations
The plugin will be delivered with an english and german language file. If you create additional language files please feel free to share them with us. We will be happy to include them in the repository.
Todo
- If CookieConsent runs locally, add the js internally - leads right now to issues with e.replace
- Add more tests