From 83e6701419bf60014c40e515b9c78d25f556579e Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Wed, 3 Apr 2019 10:03:27 +0200 Subject: [PATCH] BUGFIX: Correct constraints and make nodeTypes.yaml valid again The homepage and not found page are now forbidden via constraints instead of an empty group which caused validation errors. --- Configuration/NodeTypes.Document.Chapter.yaml | 4 ++++ Configuration/NodeTypes.Document.NotFoundPage.yaml | 3 --- Configuration/NodeTypes.Document.Page.yaml | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Configuration/NodeTypes.Document.Chapter.yaml b/Configuration/NodeTypes.Document.Chapter.yaml index 42acd927..b01e2950 100644 --- a/Configuration/NodeTypes.Document.Chapter.yaml +++ b/Configuration/NodeTypes.Document.Chapter.yaml @@ -4,6 +4,10 @@ 'Neos.Demo:Document.Chapter': superTypes: 'Neos.Neos:Document': true + constraints: + nodeTypes: + 'Neos.Demo:Document.Homepage': false + 'Neos.Demo:Document.NotFoundPage': false childNodes: 'main': type: 'Neos.Demo:Collection.Content.Main' diff --git a/Configuration/NodeTypes.Document.NotFoundPage.yaml b/Configuration/NodeTypes.Document.NotFoundPage.yaml index 2154ac39..a0b809d4 100644 --- a/Configuration/NodeTypes.Document.NotFoundPage.yaml +++ b/Configuration/NodeTypes.Document.NotFoundPage.yaml @@ -8,9 +8,6 @@ label: i18n icon: 'times' - # hide in node creation dialogue - group: ~ - # no further sub documents are allowed here constraints: nodeTypes: diff --git a/Configuration/NodeTypes.Document.Page.yaml b/Configuration/NodeTypes.Document.Page.yaml index 1a59503f..2aec0c18 100644 --- a/Configuration/NodeTypes.Document.Page.yaml +++ b/Configuration/NodeTypes.Document.Page.yaml @@ -17,7 +17,8 @@ icon: 'icon-image' constraints: nodeTypes: - 'Neos.Demo:Homepage': false + 'Neos.Demo:Document.Homepage': false + 'Neos.Demo:Document.NotFoundPage': false childNodes: 'main': type: 'Neos.Demo:Collection.Content.Main'