Skip to content

Instantly share code, notes, and snippets.

@pixelbrackets
Last active May 15, 2019 17:24
Show Gist options
  • Save pixelbrackets/0c1b87212cf2b87c52d8 to your computer and use it in GitHub Desktop.
Save pixelbrackets/0c1b87212cf2b87c52d8 to your computer and use it in GitHub Desktop.
TYPO3 Neos Backend Conditions
<f:if condition="{node.context.workspace.name} == 'live'">
Only visible in live frontend
</f:if>
<f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess">
<f:if condition="{node.context.workspace.name} != 'live'">
Only visible in backend workspace
</f:if>
</f:security.ifAccess>
<!-- »node« needs to be defined - which is the default in most of the Neos template sections (like »body«) -->
someText = 'Only visible in live frontend'
someText.@if.onlyRenderWhenNotInLiveWorkspace = ${node.context.workspace.name == 'live'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment