flowpack/restrictcreation
最新稳定版本:1.0.0
Composer 安装命令:
composer require flowpack/restrictcreation
包简介
Restrict creation of nodes in certain content dimensions
README 文档
README
Imagine the situation: you have a website with 'English (US)', 'English (UK)' and 'German' content dimensions present.
Now you never want editors to create new nodes directly in 'English (UK)', without first creating them in 'English (US)' and almost never in 'German', but some really rare cases.
This package provides an option to enforce these kind of constraints:
Getting started:
Installation
composer require flowpack/restrictcreation
Configuration
Configure your dimensions in Settings.yaml, e.g. like this:
Neos: ContentRepository: contentDimensions: language: presets: en_US: label: 'English (US)' values: - en_US uriSegment: en en_UK: label: 'English (UK)' values: - en_UK - en_US uriSegment: uk restrictCreation: mode: disallow originPreset: en_US de: label: German values: - de uriSegment: de restrictCreation: mode: warn originPreset: en_US documentNodesOnly: true
mode: warnwould only give a warning about creating a node in a possible wrong dimensiong.mode: disallowwould completely forbid creating new nodes in a certain dimension.documentNodesOnly: truewould trigger the warning only for document nodes: you would be able to create content nodes as usual, but creating document nodes in that dimension would be blocked/warned.
Acknowledgments
The initial development of this package is sponsored by web&co.
统计信息
- 总下载量: 2.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-21
