Skip to content
Snippets Groups Projects
Commit 7540dd76 authored by Elias Häußler's avatar Elias Häußler Committed by Daniel Goerz
Browse files

[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: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent dedd62fd
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment