contextualcode / ezplatform-content-aware-customtags
eZ Platform 内容感知自定义标签
v1.1.0
2021-08-24 11:50 UTC
Requires
- php: ^7.3
- ezsystems/ezplatform-richtext: ^2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
This package is not auto-updated.
Last update: 2024-09-18 01:23:25 UTC
README
此捆绑包提供了在在线编辑器中根据内容位置使用不同集合的自定义标签的能力。
这可能对拥有多个站点访问且在不同站点访问中使用不同集合自定义标签的大型项目很有用。
安装
通过 composer 需求
composer require contextualcode/ezplatform-content-aware-customtags
清除浏览器缓存,享受吧!
使用方法
捆绑包安装后,可以配置针对不同位置的哪些自定义标签应该启用。这通过使用 content_aware_custom_tags.settings
配置来完成。
假设我们想要
- 禁用所有在位置
#54
下的内容中的ezyoutube
和ezfacebook
自定义标签 - 只为所有在位置
#55
下的内容启用eztwitter
自定义标签
在这种情况下,我们需要创建 config/packages/content_aware_custom_tags.yaml
配置文件
content_aware_custom_tags:
settings:
- {parentLocationId: 54, disabled: [ezyoutube, ezfacebook]}
- {parentLocationId: 55, enabled: [eztwitter]}