Bug #16463
closedTCEFORM altLabels & addItems CType doesn't change Page-Modul CE Labels
0%
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)
Updated by Benni Mack about 18 years ago
I think the same does not work for section_frames and colPos - can anybody confirm this and maybe make a general patch for this issue? would be awesome!
Updated by Michael over 15 years ago
This seems to be a duplicate of 0008605. Is there something new about this issue?
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.
Updated by Marc Bastian Heinrichs about 11 years ago
- Is Regression set to No
Is obsolet since be layouts.