flowpack / restrictcreation
Restrict creation of nodes in certain content dimensions
Installs: 2 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 10
Forks: 3
Open Issues: 19
Language:JavaScript
Type:neos-package
Requires
- neos/neos: ^8.0
- dev-master
- 1.0.0
- 0.3
- 0.2
- 0.1
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/qs-6.11.0
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/shell-quote-1.7.3
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/async-2.6.4
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/mout-1.2.3
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/shelljs-0.8.5
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/tar-4.4.19
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/merge-1.2.1
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/lodash-4.17.21
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/y18n-3.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/ini-1.3.7
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/Resources/Private/RestrictCreation/eslint-utils-1.4.3
This package is auto-updated.
Last update: 2024-12-01 00:26:16 UTC
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: warn
would only give a warning about creating a node in a possible wrong dimensiong.mode: disallow
would completely forbid creating new nodes in a certain dimension.documentNodesOnly: true
would 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.