Feature #90213

Support bit and in TypoScript stdWrap_if

Added by Daniel Siepmann 9 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2020-01-27
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

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
}

Associated revisions

Revision 86c19567 (diff)
Added by Daniel Siepmann 8 months ago

[FEATURE] Support bit-wise and in TypoScript checkIf

Allows direct checks whether an expected bit is part of a bit set, e.g.
in a stored checkbox or radio of a record.

Resolves: #90213
Releases: master
Change-Id: I2ff188c74b207376f5f44307f0a8a2e9514ea6d8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046
Tested-by: Georg Ringer <>
Tested-by: TYPO3com <>
Tested-by: Stefan Froemken <>
Tested-by: Benni Mack <>
Reviewed-by: Georg Ringer <>
Reviewed-by: Stefan Froemken <>
Reviewed-by: Benni Mack <>

History

#1 Updated by Gerrit Code Review 9 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046

#2 Updated by Gerrit Code Review 9 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046

#3 Updated by Gerrit Code Review 9 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046

#4 Updated by Gerrit Code Review 9 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046

#5 Updated by Gerrit Code Review 8 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63046

#6 Updated by Daniel Siepmann 8 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Benni Mack 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF