Skip to content

Commit

Permalink
TASK: Use NodeType -> references configuration instead of propertie…
Browse files Browse the repository at this point in the history
…s 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
  • Loading branch information
mficzel committed Oct 22, 2024
1 parent 7e5efaa commit 377373a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions NodeTypes/Content/BlogPostingList/BlogPostingList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
label: i18n
icon: 'newspaper'
position: 50
properties:
references:
blogs:
type: references
ui:
label: i18n
showInCreationDialog: true
Expand All @@ -33,6 +32,7 @@
group: 'blog'
editorOptions:
nodeTypes: ['Neos.Demo:Document.Blog']
properties:
limit:
type: integer
defaultValue: 5
Expand Down
19 changes: 10 additions & 9 deletions NodeTypes/Content/ContactForm/ContactForm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
label: i18n
icon: comment
tab: default
references:
redirect:
constraints:
maxItems: 1
ui:
label: i18n
inspector:
group: redirect
editorOptions:
nodeTyps: [ 'Neos.Neos:Document' ]
properties:
subject:
type: string
Expand Down Expand Up @@ -60,15 +70,6 @@
label: i18n
inspector:
group: email
redirect:
type: reference
defaultValue: null
ui:
label: i18n
inspector:
group: redirect
editorOptions:
nodeTyps: ['Neos.Neos:Document']
message:
type: string
defaultValue: ''
Expand Down
3 changes: 1 addition & 2 deletions NodeTypes/Document/Homepage/Homepage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
'footer':
position: 'end'
type: 'Neos.Demo:Collection.Content.Footer'
properties:
references:
metaNavigationItems:
type: references
ui:
label: i18n
inspector:
Expand Down
2 changes: 1 addition & 1 deletion NodeTypes/Override/ContentReferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
superTypes:
'Neos.Demo:Constraint.Content.Main': true
'Neos.Demo:Constraint.Content.Column': true
properties:
references:
references:
ui:
showInCreationDialog: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<source>Blog</source>
<target state="translated">Blog</target>
</trans-unit>
<trans-unit id="properties.blogs" xml:space="preserve">
<trans-unit id="references.blogs" xml:space="preserve">
<source>Blogs</source>
</trans-unit>
<trans-unit id="properties.limit" xml:space="preserve">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<source>Message after submit</source>
<target state="translated">Nachricht nach dem Senden</target>
</trans-unit>
<trans-unit id="properties.redirect" xml:space="preserve">
<trans-unit id="references.redirect" xml:space="preserve">
<source>Redirect after submit</source>
<target state="translated">Weiterleitung nach dem Senden</target>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<trans-unit id="tabs.site" xml:space="preserve">
<source>Site configuration</source>
</trans-unit>
<trans-unit id="properties.metaNavigationItems" xml:space="preserve">
<trans-unit id="references.metaNavigationItems" xml:space="preserve">
<source>Meta navigation items</source>
</trans-unit>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<trans-unit id="groups.blog" xml:space="preserve">
<source>Blog</source>
</trans-unit>
<trans-unit id="properties.blogs" xml:space="preserve">
<trans-unit id="references.blogs" xml:space="preserve">
<source>Blogs</source>
</trans-unit>
<trans-unit id="properties.limit" xml:space="preserve">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<trans-unit id="properties.message" xml:space="preserve">
<source>Message after submit</source>
</trans-unit>
<trans-unit id="properties.redirect" xml:space="preserve">
<trans-unit id="references.redirect" xml:space="preserve">
<source>Redirect after submit</source>
</trans-unit>
<trans-unit id="properties.recipientName" xml:space="preserve">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<trans-unit id="tabs.site" xml:space="preserve">
<source>Site configuration</source>
</trans-unit>
<trans-unit id="properties.metaNavigationItems" xml:space="preserve">
<trans-unit id="references.metaNavigationItems" xml:space="preserve">
<source>Meta navigation items</source>
</trans-unit>
</body>
Expand Down

0 comments on commit 377373a

Please sign in to comment.