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.
range
range
-
- Type
- array
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Proc.
An array which defines an integer range within which the value must be. Keys:
- lower
- Defines the earliest date.
- upper
- Defines the latest date.
It is allowed to specify only one of both of them.
In this example the upper limit is set to the last day in year 2020 while the lowest possible value is set to the date of 2014:
'range' => [ 'upper' => gmmktime(23, 59, 59, 12, 31, 2020), 'lower' => gmmktime(0, 0, 0, 1, 1, 2014), ],
Copied!