Skip to content

Commit

Permalink
TASK: Add case to rawContent fusion path to ensure shortcuts are rend…
Browse files Browse the repository at this point in the history
…ered as before

This is necessary as the fusionPath is now set on the view directly if the edit preview mode defined one.
  • Loading branch information
mficzel committed May 24, 2023
1 parent 7a84dae commit da5a085
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Neos.Neos/Resources/Private/Fusion/RawContentMode.fusion
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit da5a085

Please sign in to comment.