Skip to content

Commit 377373a

Browse files
committed
TASK: Use NodeType -> references configuration instead of properties of type: reference/s
The properties of `type: reference/s` are now configured via the references as references via properties are deprecated and are converted internally anyways. This is based on: neos/neos-development-collection#5310
1 parent 7e5efaa commit 377373a

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

NodeTypes/Content/BlogPostingList/BlogPostingList.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
label: i18n
2323
icon: 'newspaper'
2424
position: 50
25-
properties:
25+
references:
2626
blogs:
27-
type: references
2827
ui:
2928
label: i18n
3029
showInCreationDialog: true
@@ -33,6 +32,7 @@
3332
group: 'blog'
3433
editorOptions:
3534
nodeTypes: ['Neos.Demo:Document.Blog']
35+
properties:
3636
limit:
3737
type: integer
3838
defaultValue: 5

NodeTypes/Content/ContactForm/ContactForm.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
label: i18n
2525
icon: comment
2626
tab: default
27+
references:
28+
redirect:
29+
constraints:
30+
maxItems: 1
31+
ui:
32+
label: i18n
33+
inspector:
34+
group: redirect
35+
editorOptions:
36+
nodeTyps: [ 'Neos.Neos:Document' ]
2737
properties:
2838
subject:
2939
type: string
@@ -60,15 +70,6 @@
6070
label: i18n
6171
inspector:
6272
group: email
63-
redirect:
64-
type: reference
65-
defaultValue: null
66-
ui:
67-
label: i18n
68-
inspector:
69-
group: redirect
70-
editorOptions:
71-
nodeTyps: ['Neos.Neos:Document']
7273
message:
7374
type: string
7475
defaultValue: ''

NodeTypes/Document/Homepage/Homepage.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
'footer':
3131
position: 'end'
3232
type: 'Neos.Demo:Collection.Content.Footer'
33-
properties:
33+
references:
3434
metaNavigationItems:
35-
type: references
3635
ui:
3736
label: i18n
3837
inspector:

NodeTypes/Override/ContentReferences.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
superTypes:
33
'Neos.Demo:Constraint.Content.Main': true
44
'Neos.Demo:Constraint.Content.Column': true
5-
properties:
5+
references:
66
references:
77
ui:
88
showInCreationDialog: true

Resources/Private/Translations/de/NodeTypes/Content/BlogPostingList.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<source>Blog</source>
1111
<target state="translated">Blog</target>
1212
</trans-unit>
13-
<trans-unit id="properties.blogs" xml:space="preserve">
13+
<trans-unit id="references.blogs" xml:space="preserve">
1414
<source>Blogs</source>
1515
</trans-unit>
1616
<trans-unit id="properties.limit" xml:space="preserve">

Resources/Private/Translations/de/NodeTypes/Content/ContactForm.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<source>Message after submit</source>
2323
<target state="translated">Nachricht nach dem Senden</target>
2424
</trans-unit>
25-
<trans-unit id="properties.redirect" xml:space="preserve">
25+
<trans-unit id="references.redirect" xml:space="preserve">
2626
<source>Redirect after submit</source>
2727
<target state="translated">Weiterleitung nach dem Senden</target>
2828
</trans-unit>

Resources/Private/Translations/de/NodeTypes/Document/Homepage.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<trans-unit id="tabs.site" xml:space="preserve">
1414
<source>Site configuration</source>
1515
</trans-unit>
16-
<trans-unit id="properties.metaNavigationItems" xml:space="preserve">
16+
<trans-unit id="references.metaNavigationItems" xml:space="preserve">
1717
<source>Meta navigation items</source>
1818
</trans-unit>
1919
</body>

Resources/Private/Translations/en/NodeTypes/Content/BlogPostingList.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<trans-unit id="groups.blog" xml:space="preserve">
1010
<source>Blog</source>
1111
</trans-unit>
12-
<trans-unit id="properties.blogs" xml:space="preserve">
12+
<trans-unit id="references.blogs" xml:space="preserve">
1313
<source>Blogs</source>
1414
</trans-unit>
1515
<trans-unit id="properties.limit" xml:space="preserve">

Resources/Private/Translations/en/NodeTypes/Content/ContactForm.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<trans-unit id="properties.message" xml:space="preserve">
1818
<source>Message after submit</source>
1919
</trans-unit>
20-
<trans-unit id="properties.redirect" xml:space="preserve">
20+
<trans-unit id="references.redirect" xml:space="preserve">
2121
<source>Redirect after submit</source>
2222
</trans-unit>
2323
<trans-unit id="properties.recipientName" xml:space="preserve">

Resources/Private/Translations/en/NodeTypes/Document/Homepage.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<trans-unit id="tabs.site" xml:space="preserve">
1212
<source>Site configuration</source>
1313
</trans-unit>
14-
<trans-unit id="properties.metaNavigationItems" xml:space="preserve">
14+
<trans-unit id="references.metaNavigationItems" xml:space="preserve">
1515
<source>Meta navigation items</source>
1616
</trans-unit>
1717
</body>

0 commit comments

Comments
 (0)