Skip to content

Instantly share code, notes, and snippets.

@svparijs
Forked from pixelbrackets/Fluid.html
Created May 15, 2019 17:24
Show Gist options
  • Save svparijs/a79ebaa32f053a6c5a9d2bfb512cab5d to your computer and use it in GitHub Desktop.
Save svparijs/a79ebaa32f053a6c5a9d2bfb512cab5d 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