gesagtgetan/cookiedialogue
Composer 安装命令:
composer require gesagtgetan/cookiedialogue
包简介
Simple cookie dialogue plugin. See settings to set path to imprint page
README 文档
README
GesagtGetan.CookieDialogue
Simple cookie dialogue plugin. There's one Fusion prototype available: GesagtGetan.CookieDialogue:Component. This prototype include also the styles and the javascript.
| Version | Neos |
|---|---|
| 2.* | 2.* |
| 3.* | 3.* + 4.* |
| 4.* | 4.* + 5.* + 7.* + 8.* |
| 5.* | 9.* |
Installation
Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/GesagtGetan.Theme) and run following command:
composer require gesagtgetan/cookiedialogue --no-update
To install the package under Neos 8.* you have to enter
composer require "gesagtgetan/cookiedialogue:^4.7" --no-update
To install the package under Neos 3.* you have to enter
composer require "gesagtgetan/cookiedialogue:^3.0" --no-update
To install the package under Neos 2.* you have to enter
composer require "gesagtgetan/cookiedialogue:^2.6" --no-update
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.
How to set it up
In most cases, you just have to define the search query in the Settings.yaml from your theme package like that:
GesagtGetan: CookieDialogue: findQuery: '[instanceof Your.Package:ImprintNodeType]'
If the plugin doesn't include the markup you have to add this line of code to your document prototype:
prototype(Your.Package:DocumentNodeType) { cookieDialogue = GesagtGetan.CookieDialogue:Component { @position = 'before closingBodyTag' } }
Interact
The event ggCookieDialogClosed is fired whenever the dialog is accepted. This can happen through manual user interaction
by clicking the button, but also happens on each page load when the dialog has been accepted before and is therefor closed
automatically.
Example usage:
document.addEventListener("ggCookieDialogClosed", function () { // this code is only executed after the dialog has been accepted at least once });
gesagtgetan/cookiedialogue 适用场景与选型建议
gesagtgetan/cookiedialogue 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 1.33k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 06 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 gesagtgetan/cookiedialogue 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gesagtgetan/cookiedialogue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-06-13