-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/90editPreviewModes' into task/e2e-tests-on-9-0
- Loading branch information
Showing
12 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ prototype(Neos.Neos:Page) { | |
|
||
@process.json = ${Json.stringify(value)} | ||
@process.wrapInJsObject = ${'<script>window[\'@Neos.Neos.Ui:DocumentInformation\']=' + value + '</script>'} | ||
@if.inBackend = ${Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)} | ||
@if.inBackend = ${renderingMode.isEdit || renderingMode.isPreview} | ||
|
||
// We need to ensure the JS backend information is always up to date, especially | ||
// when child nodes change. Otherwise errors like the following might happen: | ||
|
@@ -35,11 +35,11 @@ prototype(Neos.Neos:Page) { | |
entryIdentifier { | ||
jsBackendInfo = 'javascriptBackendInformation' | ||
documentNode = ${Neos.Caching.entryIdentifierForNode(documentNode)} | ||
inBackend = ${Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)} | ||
inBackend = ${renderingMode.isEdit || renderingMode.isPreview} | ||
} | ||
entryTags { | ||
1 = ${Neos.Caching.nodeTag(documentNode)} | ||
2 = ${(Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)) ? Neos.Caching.descendantOfTag(documentNode) : null} | ||
2 = ${(renderingMode.isEdit || renderingMode.isPreview) ? Neos.Caching.descendantOfTag(documentNode) : null} | ||
} | ||
} | ||
} | ||
|
@@ -51,18 +51,18 @@ prototype(Neos.Neos:Page) { | |
compiledResourcePackage = ${Neos.Ui.StaticResources.compiledResourcePackage()} | ||
|
||
sectionName = 'guestFrameApplication' | ||
@if.inBackend = ${Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)} | ||
@if.inBackend = ${renderingMode.isEdit || renderingMode.isPreview} | ||
} | ||
} | ||
|
||
neosBackendContainer = '<div id="neos-backend-container"></div>' | ||
neosBackendContainer.@position = 'before closingBodyTag' | ||
[email protected] = ${Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)} | ||
[email protected] = ${renderingMode.isEdit || renderingMode.isPreview} | ||
|
||
neosBackendNotification = Neos.Fusion:Template { | ||
@position = 'before closingBodyTag' | ||
templatePath = 'resource://Neos.Neos.Ui/Private/Templates/Backend/GuestNotificationScript.html' | ||
@if.inBackend = ${Neos.Backend.isEditMode(request) || Neos.Backend.isPreviewMode(request)} | ||
@if.inBackend = ${renderingMode.isEdit || renderingMode.isPreview} | ||
} | ||
|
||
@exceptionHandler = 'Neos\\Neos\\Ui\\Fusion\\ExceptionHandler\\PageExceptionHandler' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters