[TYPO3-dev] New TCA-options for getting labels with user-functions
David Bruehlmeier
typo3 at bruehlmeier.com
Fri Mar 24 15:47:16 CET 2006
Hi,
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.
I have attached the patches need to make this run in the bugtracker
(http://bugs.typo3.org/view.php?id=2979), including a small
test-extension and an addition for the doc_core_api documentation, ready
to copy/paste.
Any comments appreciated!
Greetings,
Dave.
More information about the TYPO3-dev
mailing list