Project

General

Profile

Actions

Bug #16463

closed

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

Added by Marc Bastian Heinrichs over 18 years ago. Updated about 11 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 #1

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!

Actions #2

Updated by Michael over 15 years ago

This seems to be a duplicate of 0008605. Is there something new about this issue?

Actions #3

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)?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions #5

Updated by Marc Bastian Heinrichs about 11 years ago

  • Is Regression set to No

Is obsolet since be layouts.

Actions

Also available in: Atom PDF