Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
Calc
Calculating values (+calc)
Sometimes a data type is set to someType +calc
. The +calc
indicates
that the value is calculated with +-/\*
operators. Be aware that the
operators have no "weight". The calculation is done from left to
right instead of order of operations (multiplication and division before addition and subtraction).
How value is calculated
45 + 34 * 2 = 158
(which is the same as this in ordinary arithmetic: (45+34)*2=158)
calc usage example
The HMENU
max
property is of a type
integer +calc
, it's value in this example equals to 259200.
20 = HMENU
20.special = updated
20.special.value = 35, 56
20.special {
mode = tstamp
depth = 2
maxAge = 3600*24*3
limit = 8
}