Okay this feels like an issue, tell me if I am wrong…
Since I had some troubles with setting up Constraints, the following example below is based on a fresh install with an empty site and the only new code in NodeTypes.yaml is this:
The weird thing here is, that the wildcard doesn’t do anything at all. I was actually aiming for not allowing any child-pages to the Test-page, but having just the wildcard gives me all three options: page, shortcut, Test Document.
Adding the specific ‘Neos.Plain:Test’: FALSE makes at least the option Test Document disapear!?
a nasty topic I’ve encountered is that the constraints are very aggressively cached inside the browser. To clear this, run: window.localStorage.clear(); window.sessionStorage.clear() inside the developer toolbar of your browser.
Also here the wildcard in the ‘TYPO3.Neos.NodeTypes:Page’-constraint doesn’t work… (only setting Page and Shortcuts directly to false does the job) I still don’t really understand why!?
The above solutions seems to work fine, but I am still not sure if this is the proper way to do it?
Also it’s is still not really clear to me what is added by the ‘/TYPO3.Neos.NodeTypes/Configuration/NodeTypes.Documents.yaml’-file besides defining the main-ContentCollection -> what are the defined properties for (what is different between Page to the Document-Type in that sense?)