Feature-90203-MakeWorkspaceAvailableInTypoScriptConditions.rst 1.01 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
.. include:: ../../Includes.txt

===================================================================
Feature: #90203 - Make workspace available in TypoScript conditions
===================================================================

See :issue:`90203`

Description
===========

12
A new TypoScript expression language variable :ts:`workspace` has been added.
13
14
It can be used to match a given expression against common workspace parameters.

15
Currently, the parameters :ts:`workspaceId`, :ts:`isLive` and :ts:`isOffline` are supported.
16
17
18
19
20
21

Examples
--------

Match the current workspace id:

22
.. code-block:: typoscript
23
24
25
26
27
28
29

   [workspace.workspaceId === 3]
       # Current workspace id equals: 3
   [end]

Match against current workspace state:

30
.. code-block:: typoscript
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

   [workspace.isLive]
       # Current workspace is live
   [end]

   [workspace.isOffline]
       # Current workspace is offline
   [end]


Impact
======

The new feature allows matching against several workspace parameters within TypoScript.

46
.. index:: TypoScript