Issue Feature Closed

#90213Support bit and in TypoScript stdWrap_if

Daniel Siepmann 01/27/20, 12:20 updated 08/10/20, 08:04

Description

TypoScript allows to write conditions using stdWrap option “if”.
This is often used to check whether a value stored in db matches an expected value.
In case of checkboxes, TYPO3 stores a single bit value for all selected options.

Right now it is not possible to compare easily against such values. One needs to use something like this:

hideForSmall.value.override.if {
    isInList.field = tx_e2core_visibility
    value = 1,3,5,7,9,11,13,15
}

but more complex.

Therefore an new condition should be added which allows to check whether a specific bit is stored:

hideForSmall.value.override.if {
    bitAnd.field = tx_e2core_visibility
    value = 1
}

Reviews 1