Feature-90213-SupportBitAndInTypoScriptStdWrapIf.rst 908 Bytes
Newer Older
1
2
.. include:: ../../Includes.txt

3
============================================================
4
Feature: #90213 - Support 'bit and' in TypoScript stdWrap_if
5
============================================================
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

See :issue:`90213`

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

It is now possible to use :ts:`bitAnd` within TypoScript :ts:`if`.

TYPO3 uses bits to store radio and checkboxes via TCA.
Without this feature one would need to check whether any possible bit value is in a
list. With this feature a simple comparison whether the expected value is part of the
bit set is possible.

Example
=======

An example usage could look like this:

24
.. code-block:: typoscript
25
26
27

   hideDefaultLanguageOfPage = TEXT
   hideDefaultLanguageOfPage {
28
29
30
31
32
33
     value = 0
     value {
       override = 1
       override.if {
         bitAnd.field = l18n_cfg
         value = 1
34
       }
35
     }
36
37
   }

38
.. index:: ext:frontend, TypoScript