From da5a085cf2333ce112670ff777718a146ac5a935 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Wed, 24 May 2023 17:52:28 +0200 Subject: [PATCH] TASK: Add case to rawContent fusion path to ensure shortcuts are rendered as before This is necessary as the fusionPath is now set on the view directly if the edit preview mode defined one. --- .../Private/Fusion/RawContentMode.fusion | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Neos.Neos/Resources/Private/Fusion/RawContentMode.fusion b/Neos.Neos/Resources/Private/Fusion/RawContentMode.fusion index ed7324aeec9..c26c78057d9 100644 --- a/Neos.Neos/Resources/Private/Fusion/RawContentMode.fusion +++ b/Neos.Neos/Resources/Private/Fusion/RawContentMode.fusion @@ -1,3 +1,20 @@ include: RawContent/*.fusion -rawContent = Neos.Neos:RawContent.Document +rawContent = Neos.Fusion:Case +rawContent { + shortcut { + prototype(Neos.Neos:Page) { + body = Neos.Neos:Shortcut + } + + @position = 'start' + condition = ${q(node).is('[instanceof Neos.Neos:Shortcut]')} + type = 'Neos.Neos:Page' + } + + default { + @position = 'end' + condition = true + renderer = Neos.Neos:RawContent.Document + } +}