Feature #15893
closedNew TCA-options for getting labels with user-functions
0%
Description
For the 4.5 release, I would like to propose the introduction of two new TCA options which offer the possibility to determine labels in a user-function.
$TCA['tx_whatever']['ctrl']['label_user_func']
This can be used whenever the label or label_alt options don't offer enough flexibility, e.g. when you want to look up another table to create your label. The result of this function will overwrite anything found by the regular label or label_alt functionality.
$TCA['tx_whatever']['columns']['my_field']['label_user_func']
This can be used if you wish to determine the label of the field yourself, e.g. depending on a type-field.
(issue imported from #M2979)
Files
Updated by Oliver Hader almost 18 years ago
This feature made it into the core of TYPO3 4.1 and could be used at $TCA[<table>]['ctrl']['label_userFunc']. See TYPO3 Core API for detailed information.
Thanks David, for your contribution!