承接 ride/wba-gdprcookie 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ride/wba-gdprcookie

最新稳定版本:2.4.1

Composer 安装命令:

composer require ride/wba-gdprcookie

包简介

GDPR cookie warning and modal for EU

README 文档

README

Installation

You can use Composer to install this application.

composer require ride/wba-gdprcookie

Usage

The module includes a script & styling for a cookie banner and a modal where the visitor can select his/her cookie preferences.

You need to include the following snippet in your base/index.tpl. Right underneath the content_body block

<!-- Adds the cookie template to your page -->
{if isset($gdprTemplate)}
    {$gdprTemplate}
{/if}
<!-- End of cookie template snippet -->

Add the link to the settings on your page.

<a href="javascript:void(0)" class="js-lcc-settings-toggle">{'cookies.settings_title'|translate}</a>

In your parameters.json you set the url to your cookie policy page. This has to be done per language. eg.

`cookies.policy_url.nl => 'https://your.policy.url'

cookies.policy_url.en => 'https://your.policy.url'

cookies.policy_url.fr => 'https://your.policy.url'

If there is only one language present you can just set

cookies.policy_url => 'https://your.policy.url'

Don't forget to add your cookie policy page to the ignored paths

You don't want the modal to pop up on your policy page. So in your parameters.json add: "cookies.ignored_paths": "/en/cookie-policy"

Always use the relative url.

If you want to add more ignored paths for let's say multisites, use the ignored paths as in the example below.

Cookie settings can be altered in parameters too:

  "cookies.cookie_key": "__cookie_consent",
  "cookies.cookie_value_analytics": "2",
  "cookies.cookie_value_marketing": "3",
  "cookies.cookie_value_both": "true",
  "cookies.cookie_value_none": "false",
  "cookies.cookie_expiration_days": "365",
  "cookies.gtm_event": "cookie_refresh",
  "cookies.ignored_paths.0": "",
  "cookies.ignored_paths.1": "",
  "cookies.custom_style": false

UPDATING FROM 2.2.0 TO 2.3.0

Translations have changes in this update. If you overwrite some in your own project, be sure to check if they are up to date.

统计信息

  • 总下载量: 1.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 9
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-15