[TYPO3-dev] How to get rid of the "age" information in a record label when using a date field as label?

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Apr 18 13:29:34 CEST 2011


Hey again,

> when using a TCA field as record label that's evaluated as date, TYPO3
> is not only displaying the date itself, but also it's age in brackets:
>
> Example:
> - "Some title, 2011-04-17 (-1 day)"
>
> How can I disable that age information for those specific records or in
> general? Do I really need a custom labelFunc? Searching google didn't
> help so far (maybe wrong keywords).

sorry for bothering. Sometimes a quick search over the core can give 
answers in just a few seconds where google and friends fail.
Answer is: it's not possible without either using a label_userFunc or 
using the following hook to postProcess the label values:
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['postProcessValue']

Maybe an option to enable/disable this on record level might be nice, 
because showing the age doesn't make sense on all dates used as label (I 
wonder where this information is of relevance anyway because you already 
see the date itself).

-- 
kind regards,
Franz Koch




More information about the TYPO3-dev mailing list