From 377373a9c421116875d332bff229d0c6d6bdb0f7 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Tue, 22 Oct 2024 12:15:43 +0200 Subject: [PATCH] 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: https://github.com/neos/neos-development-collection/pull/5310 --- .../BlogPostingList/BlogPostingList.yaml | 4 ++-- .../Content/ContactForm/ContactForm.yaml | 19 ++++++++++--------- NodeTypes/Document/Homepage/Homepage.yaml | 3 +-- NodeTypes/Override/ContentReferences.yaml | 2 +- .../de/NodeTypes/Content/BlogPostingList.xlf | 2 +- .../de/NodeTypes/Content/ContactForm.xlf | 2 +- .../de/NodeTypes/Document/Homepage.xlf | 2 +- .../en/NodeTypes/Content/BlogPostingList.xlf | 2 +- .../en/NodeTypes/Content/ContactForm.xlf | 2 +- .../en/NodeTypes/Document/Homepage.xlf | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/NodeTypes/Content/BlogPostingList/BlogPostingList.yaml b/NodeTypes/Content/BlogPostingList/BlogPostingList.yaml index 7c824411..ac5f007b 100644 --- a/NodeTypes/Content/BlogPostingList/BlogPostingList.yaml +++ b/NodeTypes/Content/BlogPostingList/BlogPostingList.yaml @@ -22,9 +22,8 @@ label: i18n icon: 'newspaper' position: 50 - properties: + references: blogs: - type: references ui: label: i18n showInCreationDialog: true @@ -33,6 +32,7 @@ group: 'blog' editorOptions: nodeTypes: ['Neos.Demo:Document.Blog'] + properties: limit: type: integer defaultValue: 5 diff --git a/NodeTypes/Content/ContactForm/ContactForm.yaml b/NodeTypes/Content/ContactForm/ContactForm.yaml index e63d9ffd..8040c19d 100644 --- a/NodeTypes/Content/ContactForm/ContactForm.yaml +++ b/NodeTypes/Content/ContactForm/ContactForm.yaml @@ -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 @@ -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: '' diff --git a/NodeTypes/Document/Homepage/Homepage.yaml b/NodeTypes/Document/Homepage/Homepage.yaml index fb78e0f4..8c0de2c1 100644 --- a/NodeTypes/Document/Homepage/Homepage.yaml +++ b/NodeTypes/Document/Homepage/Homepage.yaml @@ -30,9 +30,8 @@ 'footer': position: 'end' type: 'Neos.Demo:Collection.Content.Footer' - properties: + references: metaNavigationItems: - type: references ui: label: i18n inspector: diff --git a/NodeTypes/Override/ContentReferences.yaml b/NodeTypes/Override/ContentReferences.yaml index 86f5c299..682e5ed1 100644 --- a/NodeTypes/Override/ContentReferences.yaml +++ b/NodeTypes/Override/ContentReferences.yaml @@ -2,7 +2,7 @@ superTypes: 'Neos.Demo:Constraint.Content.Main': true 'Neos.Demo:Constraint.Content.Column': true - properties: + references: references: ui: showInCreationDialog: true diff --git a/Resources/Private/Translations/de/NodeTypes/Content/BlogPostingList.xlf b/Resources/Private/Translations/de/NodeTypes/Content/BlogPostingList.xlf index 6a87debe..d6af474a 100644 --- a/Resources/Private/Translations/de/NodeTypes/Content/BlogPostingList.xlf +++ b/Resources/Private/Translations/de/NodeTypes/Content/BlogPostingList.xlf @@ -10,7 +10,7 @@ Blog Blog - + Blogs diff --git a/Resources/Private/Translations/de/NodeTypes/Content/ContactForm.xlf b/Resources/Private/Translations/de/NodeTypes/Content/ContactForm.xlf index a2b9f598..0be87842 100644 --- a/Resources/Private/Translations/de/NodeTypes/Content/ContactForm.xlf +++ b/Resources/Private/Translations/de/NodeTypes/Content/ContactForm.xlf @@ -22,7 +22,7 @@ Message after submit Nachricht nach dem Senden - + Redirect after submit Weiterleitung nach dem Senden diff --git a/Resources/Private/Translations/de/NodeTypes/Document/Homepage.xlf b/Resources/Private/Translations/de/NodeTypes/Document/Homepage.xlf index 11588fb6..2be0c010 100644 --- a/Resources/Private/Translations/de/NodeTypes/Document/Homepage.xlf +++ b/Resources/Private/Translations/de/NodeTypes/Document/Homepage.xlf @@ -13,7 +13,7 @@ Site configuration - + Meta navigation items diff --git a/Resources/Private/Translations/en/NodeTypes/Content/BlogPostingList.xlf b/Resources/Private/Translations/en/NodeTypes/Content/BlogPostingList.xlf index 64c399ef..1952b4fd 100644 --- a/Resources/Private/Translations/en/NodeTypes/Content/BlogPostingList.xlf +++ b/Resources/Private/Translations/en/NodeTypes/Content/BlogPostingList.xlf @@ -9,7 +9,7 @@ Blog - + Blogs diff --git a/Resources/Private/Translations/en/NodeTypes/Content/ContactForm.xlf b/Resources/Private/Translations/en/NodeTypes/Content/ContactForm.xlf index 343250f0..a06b6b5f 100644 --- a/Resources/Private/Translations/en/NodeTypes/Content/ContactForm.xlf +++ b/Resources/Private/Translations/en/NodeTypes/Content/ContactForm.xlf @@ -17,7 +17,7 @@ Message after submit - + Redirect after submit diff --git a/Resources/Private/Translations/en/NodeTypes/Document/Homepage.xlf b/Resources/Private/Translations/en/NodeTypes/Document/Homepage.xlf index 99b403b2..b567c424 100644 --- a/Resources/Private/Translations/en/NodeTypes/Document/Homepage.xlf +++ b/Resources/Private/Translations/en/NodeTypes/Document/Homepage.xlf @@ -11,7 +11,7 @@ Site configuration - + Meta navigation items