Project

General

Profile

Actions

Feature #15801

closed

$TCA based labeling for fields with foreign uid's

Added by Jochen Rieger over 18 years ago. Updated over 16 years ago.

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

0%

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

Description

I am looking for a way to change the label of a record in the list module. Usually this of cause works fine in the CTRL-section of your table's TCA.

But what if you have records that don't have a real title but just consist of uid's of other records?

Is there a way in the TCA configuration to get the title of a foreign record's uid?

Example:

tx_cafeteria
uid, title, ...

tx_dishes
uid, title, ...

tx_meals
uid, dish_uid, dish_cafeteria

I now want the meals records labeled by the title of the related entry in tx_dishes.

Something like:

$TCA['tx_meals'] = Array (
'ctrl' => Array (
'label' => 'dish_uid:TABLE:tx_dishes:title'

(issue imported from #M2823)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #15893: New TCA-options for getting labels with user-functionsClosedOliver Hader2006-03-24

Actions
Actions #1

Updated by Dmitry Dulepov over 18 years ago

Could also be: "dish_uid:tx_dishes:title"

Actions #2

Updated by David Bruehlmeier over 18 years ago

If the label can be determined by a user-func (as suggested by bug 2979), this might not have to be implemented.

Actions #3

Updated by Oliver Hader over 17 years ago

The feature of a a user function for labels was integrated a new feature in TYPO3 4.1.0.

$TCA[$table]['ctrl']['label_userFunc']

Actions

Also available in: Atom PDF