PHP code example of flowpack / restrictcreation
1. Go to this page and download the library: Download flowpack/restrictcreation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flowpack / restrictcreation example snippets
yaml
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