Project

General

Profile

Actions

Feature #15893

closed

New TCA-options for getting labels with user-functions

Added by David Bruehlmeier about 18 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2006-03-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

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

patch_class.t3lib_tceforms.php (988 Bytes) patch_class.t3lib_tceforms.php Administrator Admin, 2006-03-24 15:36
patch_class.t3lib_befunc.php (873 Bytes) patch_class.t3lib_befunc.php Administrator Admin, 2006-03-24 15:37
patch_class.db_list_extra.inc (890 Bytes) patch_class.db_list_extra.inc Administrator Admin, 2006-03-24 15:37
T3X_test_label_user_func-0_0_0-z-200603241536.t3x (12.5 KB) T3X_test_label_user_func-0_0_0-z-200603241536.t3x Administrator Admin, 2006-03-24 15:37
label_user_func.sxw (9.39 KB) label_user_func.sxw Administrator Admin, 2006-03-24 15:39

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #15801: $TCA based labeling for fields with foreign uid'sClosedOliver Hader2006-03-10

Actions
Related to TYPO3 Core - Bug #17332: label field which is a relation is not human readable (the field is not resolved like in 4.0.x)ClosedIngmar Schlecht2007-05-25

Actions
Actions #1

Updated by Oliver Hader about 17 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!

Actions

Also available in: Atom PDF