[FEATURE] New option to disable the age display of dates per field by TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-28243-IntroduceTcaOptionToDisableAgeDisplay.rst
1 ================================================================================
2 Feature: #28243 - Introduce TCA option to disable age display of dates per field
3 ================================================================================
4
5 Description
6 ===========
7
8 It is now possible to disable the display of the age (p.e. "2015-08-30 (-27 days)") of date fields in record
9 listings by a new TCA option.
10 The option is called "disableAgeDisplay" and can be set in the config section of a field.
11 It will be respected if the field has the type "input" and its eval is set to "date".
12
13 Example
14 -------
15
16 .. code-block:: php
17
18 // disables the display of " (-27 days)" p.e.
19 $GLOBALS['TCA']['tt_content']['columns']['date']['config']['disableAgeDisplay'] = true;