1.. include:: ../../Includes.txt
2
3===================================================================
4Feature: #90203 - Make workspace available in TypoScript conditions
5===================================================================
6
7See :issue:`90203`
8
9Description
10===========
11
12A new TypoScript expression language variable :ts:`workspace` has been added.
13It can be used to match a given expression against common workspace parameters.
14
15Currently, the parameters :ts:`workspaceId`, :ts:`isLive` and :ts:`isOffline` are supported.
16
17Examples
18--------
19
20Match the current workspace id:
21
22.. code-block:: typoscript
23
24   [workspace.workspaceId === 3]
25       # Current workspace id equals: 3
26   [end]
27
28Match against current workspace state:
29
30.. code-block:: typoscript
31
32   [workspace.isLive]
33       # Current workspace is live
34   [end]
35
36   [workspace.isOffline]
37       # Current workspace is offline
38   [end]
39
40
41Impact
42======
43
44The new feature allows matching against several workspace parameters within TypoScript.
45
46.. index:: TypoScript
47