Skip to content

Commit

Permalink
TASK: Do not pass the edit preview mode to the rendering but. Instead…
Browse files Browse the repository at this point in the history
… the fusion path is set by the nodeController

The main difference is that this leads to edit preview modes now rendering shortcut nodes using the configured fusionPath
  • Loading branch information
mficzel committed May 22, 2023
1 parent 323e8ad commit 7a84dae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Neos.Neos/Classes/Controller/Frontend/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,13 @@ protected function renderEditPreviewMode(string $node, EditPreviewMode $editPrev
$this->handleShortcutNode($nodeAddress, $contentRepository);
}

if ($editPreviewMode->fusionPath) {
$this->view->setFusionPath($editPreviewMode->fusionPath);
}

$this->view->assignMultiple([
'value' => $nodeInstance,
'site' => $site,
'editPreviewMode' => $editPreviewMode
'site' => $site
]);

if (!$nodeAddress->isInLiveWorkspace()) {
Expand Down
6 changes: 0 additions & 6 deletions Neos.Neos/Resources/Private/Fusion/RootCase.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ root {
type = 'Neos.Neos:Page'
}

editPreviewMode {
@position = 'end 9996'
condition = ${Neos.Node.inBackend(documentNode) && editPreviewMode.fusionPath}
renderPath = ${'/' + editPreviewMode.fusionPath}
}

format {
@position = 'end 9997'
condition = ${request.format != 'html'}
Expand Down

0 comments on commit 7a84dae

Please sign in to comment.