-
-
Save svparijs/a79ebaa32f053a6c5a9d2bfb512cab5d to your computer and use it in GitHub Desktop.
TYPO3 Neos Backend Conditions
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
<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«) --> |
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
someText = 'Only visible in live frontend' | |
[email protected] = ${node.context.workspace.name == 'live'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment