sitegeist/silhouettes
Composer 安装命令:
composer require sitegeist/silhouettes
包简介
Preconfigure property-silhuettes that can be applied to various properties of multiple NodeTypes.
README 文档
README
Neos 7.0 includes the features of Sitegeist.Silhouettes as NodeType presets. This package will be abandoned in favor of that eventually!
Centralized property configuration for the Neos.ContentRepository
It is common that properties in various NodeTypes are expected to behave identically. This is usually achieved with mixins but those are bound to a fixed property name do not cover the case where properties with different names share similarities.
The Sitegeist.Silhouettes package uses preconfigured
property-configurations from the settings in multiple NodeTypes. This
adds a way to centralize property-configuration for cases where mixins
are not sufficient and settings shall be synchronized betweeen
properties with different names.
It is also possible to create silhouettes for childNode constraint configurations, e.g. to apply the same centralized constraints to different childNodes following the dry principle. This can also be useful when using a single NodeType package in different neos instances where the constraints may differcenate.
The settings from the configured silhouette are merged with the configuration that is found in the nodeType with the local configuration taking precedence over the silhouette.
Authors & Sponsors
- Martin Ficzel - ficzel@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Usage
Settings.yaml
Sitegeist: Silhouettes: properties: vendor: text: block: type: string defaultValue: '' ui: inlineEditable: true inline: editorOptions: placeholder: '(( text block ))' autoparagraph: true linking: anchor: true title: true relNofollow: false targetBlank: false formatting: strong: true em: true u: false underline: false strikethrough: false sub: false sup: false del: false p: true h1: false h2: false h3: false h4: false h5: false h6: false pre: false removeFormat: true left: false right: false center: false justify: false table: false ol: false ul: false a: true childNodes: vendor: defaultConstraints: constraints: 'Neos.Neos:Content': true 'Neos.NodeTypes.BaseMixins:TitleMixin': true 'Neos.Demo:Constraint.Content.Carousel': true 'Neos.Demo:Constraint.Content.Column': false
NodeTypes.yaml
'Vendor.Package:NodeTypeName': childNodes: column1: options: silhouette: 'vendor.defaultConstraints' column2: options: silhouette: 'vendor.defaultConstraints' properties: description: ui: label: 'Description' inline: editorOptions: placeholder: 'please add description ... ' options: silhouette: 'vendor.text.block'
Predefined silhouettes
text.plain: An inline editable string where no formatting is allowed.text.block: An inline editable string where only inline formatting is enabled.text.free: An inline editable string where all formatting including blocks is allowed.
Installation
Sitegeist.Silhouettes is available via packagist. Add "sitegeist/silhouettes" : "^1.0"
to the require section of the composer.json or run composer require sitegeist/silhouettes.
We use semantic-versioning so every breaking change will increase the major-version number.
Contribution
We will gladly accept contributions. Please send us pull requests.
sitegeist/silhouettes 适用场景与选型建议
sitegeist/silhouettes 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 159.89k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2018 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sitegeist/silhouettes 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sitegeist/silhouettes 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 159.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-01-30