Bug #24317
closedBug #21410: t3lib_BEfunc::getProcessedValue does not show record title for foreign elements for type group / db
TCA parameter "label_alt" does not resolve foreign table label for 1:n relations on group fields
0%
Description
I have set 'label' to a text field called 'title' - works.
I have set 'label_alt' to a field of type 'group/db' and
'label_alt_force' to 'TRUE' - does not work.
Instead of displaying the label field of the other table
the raw value (the record's uid) is shown.
The record gets listed this way in the backend:
"My record's title, 23"
Instead of 23 the relation should get resolved to the
record of the other table and the label-field's value should be shown.
I'll post the TCA as additional information here,
the field 'client' is the one which doesn't get resolved.
Instead only the id of the record is shown.
I think this behaves correct if using a field
of type 'select' instead of 'group'.
$TCA['tx_hypeshowcase_domain_model_project'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:hype_showcase/Resources/Private/Language/locallang_db.xml:tx_hypeshowcase_domain_model_project',
'label' => 'title',
'label_alt' => 'client',
'label_alt_force' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Configuration/TCA/Icons/project.png',
'dividers2tabs' => TRUE,
),
);
(issue imported from #M16716)
Files
Updated by Thomas Deinhamer almost 14 years ago
Hi all!
Can this be considered as bug and move into trunk and branches 4.4 and 4.3 as well?
Thanks!
Updated by Koopa over 13 years ago
Confirmed for Typo3 4.5.2 this feature does not work either.
Correction: Does not work on some system fields like 'pid' or 'cruser_id'. After inspection, it does seem to work on custom added fields.
Updated by Navi over 13 years ago
- File records.jpg records.jpg added
- Target version changed from 0 to 4.5.4
Hi,
I have the same problem in a way that some records are shown fine, but others are not, see the screenshot.
Thema's are shown by title, but doelgroep and onderwerpen are by uid.
Any idea?
Updated by Oliver Hader over 13 years ago
- Target version changed from 4.5.4 to 4.5.6
Updated by Chris topher about 13 years ago
- Target version changed from 4.5.6 to 4.5.8
Updated by Ernesto Baschny almost 13 years ago
- Target version changed from 4.5.8 to 4.5.12
Updated by Georg Ringer almost 10 years ago
- Status changed from New to Resolved
- Is Regression set to No
as #21410 has been resolved and is being a duplicate, this should be fine now as well.
if still valid for your in 6.2, please feel free to reopen the issue!
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed