Project

General

Profile

Actions

Bug #16463

closed

TCEFORM altLabels & addItems CType doesn't change Page-Modul CE Labels

Added by Marc Bastian Heinrichs over 17 years ago. Updated over 10 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you change labels of CTypes with
TCEFORM.tt_content.CType.altLabels...
the new Label isn't assigned to the Label of a CE in Page-Modul overview

If you add items with
TCEFORM.tt_content.CType.addItems....
the label isn't assigned to the Label of a CE in Page-Modul overview

A quick $ dirty solution:
change lines 389 - 397 in class.tx_cms_layout.php (based on 4.0.1)
from:

// Get labels for CTypes and tt_content element fields in general:
$this->CType_labels =array();
foreach($TCA['tt_content']['columns']['CType']['config']['items'] as $val) {
$this->CType_labels[$val1]=$GLOBALS['LANG']->sL($val0);
}
$this->itemLabels =array();
foreach($TCA['tt_content']['columns'] as $name => $val) {
$this->itemLabels[$name]=$GLOBALS['LANG']->sL($val['label']);
}

to:

// Get labels for CTypes and tt_content element fields in general:
$this->CType_labels =array();
$pageTSConfig = t3lib_BEfunc::getPagesTSconfig($id);
foreach($TCA['tt_content']['columns']['CType']['config']['items'] as $val) { $this->CType_labels[$val1]=$GLOBALS['LANG']->sL($val0);
if (isset($pageTSConfig['TCEFORM.']['tt_content.']['CType.']['altLabels.'][$val1])) {
$this->CType_labels[$val1] = $GLOBALS['LANG']->sL($pageTSConfig['TCEFORM.']['tt_content.']['CType.']['altLabels.'][$val1]);
}
}
if (is_array($pageTSConfig['TCEFORM.']['tt_content.']['CType.']['addItems.'])) {
foreach($pageTSConfig['TCEFORM.']['tt_content.']['CType.']['addItems.'] as $item => $val) {
$this->CType_labels[$item] = $GLOBALS['LANG']->sL($val);
}
}

$this->itemLabels =array();
foreach($TCA['tt_content']['columns'] as $name => $val) {
$this->itemLabels[$name]=$GLOBALS['LANG']->sL($val['label']);
}

(issue imported from #M4033)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #29696: section_frame in listview displays wrong labelClosed2011-09-12

Actions
Related to TYPO3 Core - Feature #39327: Function to get correct item label including TsConfig valueClosedGeorg Ringer2012-07-27

Actions
Has duplicate TYPO3 Core - Bug #18904: Content Element Description Backend DisplayClosedChris topher2008-06-04

Actions
Actions

Also available in: Atom PDF