Skip to content

Commit

Permalink
TASK: Add missing createNew Option for the reference(s) editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Jun 26, 2024
1 parent 3f58fba commit 8a0a062
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions NodeTypes.Schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,21 @@
"disabled": {
"type": "boolean",
"default": false
},
"createNew": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"titleProperty": {
"type": "string"
}
}
}
}
}
Expand Down Expand Up @@ -582,6 +597,21 @@
"disabled": {
"type": "boolean",
"default": false
},
"createNew": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"titleProperty": {
"type": "string"
}
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions examples/NodeTypes.Editors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ My.Vendor:Content.Editors:
nodeTypes: [ Neos.Neos:Document ]
startingPoint: '/sites'
disabled: false
createNew:
path: '/sites/neosdemo'
type: 'Neos.Demo:Document.Page'
titleProperty: 'title'

references:
type: references
Expand All @@ -144,6 +148,10 @@ My.Vendor:Content.Editors:
nodeTypes: [ Neos.Neos:Document ]
startingPoint: '/sites'
disabled: false
createNew:
path: '/sites/neosdemo'
type: 'Neos.Demo:Document.Page'
titleProperty: 'title'

link:
type: string
Expand Down

0 comments on commit 8a0a062

Please sign in to comment.