Skip to content

Commit

Permalink
BUGFIX: Correct constraints and make nodeTypes.yaml valid again
Browse files Browse the repository at this point in the history
The homepage and not found page are now forbidden via constraints instead of an empty group which caused validation errors.
  • Loading branch information
mficzel committed Apr 3, 2019
1 parent 486f1b9 commit 83e6701
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Configuration/NodeTypes.Document.Chapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 0 additions & 3 deletions Configuration/NodeTypes.Document.NotFoundPage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
label: i18n
icon: 'times'

# hide in node creation dialogue
group: ~

# no further sub documents are allowed here
constraints:
nodeTypes:
Expand Down
3 changes: 2 additions & 1 deletion Configuration/NodeTypes.Document.Page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 83e6701

Please sign in to comment.