[FEATURE] Add new TypoScript condition `workspace`
A new TypoScript condition `workspace` has been added which allows checking of several workspace parameters against a given expression. Currently, only workspace id and state can be used within conditions. Example: [workspace.workspaceId === 0] # This matches if the current workspace id equals 0 [end] [workspace.isLive] # This can be used to check if the current workspace is live [end] [workspace.isOffline] # This can be used to check if the current workspace is offline [end] Resolves: #90203 Releases: master Change-Id: I4113fc31e28c2d187f2398cc346088144d621639 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63035 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 7 additions, 0 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 124 additions, 47 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
- typo3/sysext/core/Documentation/Changelog/9.4/Feature-85829-ImplementSymfonyExpressionLanguageForTypoScriptConditions.rst 8 additions, 0 deletions...ementSymfonyExpressionLanguageForTypoScriptConditions.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-90203-MakeWorkspaceAvailableInTypoScriptConditions.rst 46 additions, 0 deletions...re-90203-MakeWorkspaceAvailableInTypoScriptConditions.rst
- typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 7 additions, 0 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/frontend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 58 additions, 0 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
Please register or sign in to comment