55 $recordTypeValue = $result[
'recordTypeValue'];
57 if (!isset($result[
'processedTca'][
'types'][$recordTypeValue][
'showitem'])) {
60 $showItemArray = GeneralUtility::trimExplode(
',', $result[
'processedTca'][
'types'][$recordTypeValue][
'showitem']);
61 foreach ($showItemArray as $aShowItemFieldString) {
62 $aShowItemFieldArray = GeneralUtility::trimExplode(
';', $aShowItemFieldString);
63 $aShowItemFieldArray = [
64 'fieldName' => $aShowItemFieldArray[0],
65 'fieldLabel' => !empty($aShowItemFieldArray[1]) ? $aShowItemFieldArray[1] :
null,
66 'paletteName' => !empty($aShowItemFieldArray[2]) ? $aShowItemFieldArray[2] :
null,
68 if ($aShowItemFieldArray[
'fieldName'] ===
'--div--') {
72 if ($aShowItemFieldArray[
'fieldName'] ===
'--palette--') {
75 if (!isset($result[
'processedTca'][
'palettes'][$aShowItemFieldArray[
'paletteName']][
'showitem'])) {
79 $palettesArray = GeneralUtility::trimExplode(
81 $result[
'processedTca'][
'palettes'][$aShowItemFieldArray[
'paletteName']][
'showitem']
83 foreach ($palettesArray as $aPalettesString) {
84 $aPalettesArray = GeneralUtility::trimExplode(
';', $aPalettesString);
86 'fieldName' => $aPalettesArray[0],
87 'fieldLabel' => $aPalettesArray[1] ?:
null,
89 if (!empty($aPalettesArray[
'fieldLabel'])
90 && isset($result[
'processedTca'][
'columns'][$aPalettesArray[
'fieldName']])
92 $result[
'processedTca'][
'columns'][$aPalettesArray[
'fieldName']][
'label'] = $aPalettesArray[
'fieldLabel'];
98 if (!empty($aShowItemFieldArray[
'fieldLabel'])
99 && isset($result[
'processedTca'][
'columns'][$aShowItemFieldArray[
'fieldName']])
101 $result[
'processedTca'][
'columns'][$aShowItemFieldArray[
'fieldName']][
'label'] = $aShowItemFieldArray[
'fieldLabel'];
120 $table = $result[
'tableName'];
121 foreach ($result[
'processedTca'][
'columns'] as $fieldName => $fieldConfiguration) {
123 if (isset($result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'][$fieldName .
'.'])
124 && is_array($result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'][$fieldName .
'.'])
126 $fieldTSConfig = $result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'][$fieldName .
'.'];
128 if (!empty($fieldTSConfig[
'label'])) {
129 $result[
'processedTca'][
'columns'][$fieldName][
'label'] = $fieldTSConfig[
'label'];
131 if (!empty($fieldTSConfig[
'label.'][$languageService->lang])) {
132 $result[
'processedTca'][
'columns'][$fieldName][
'label'] = $fieldTSConfig[
'label.'][$languageService->lang];
147 foreach ($result[
'processedTca'][
'columns'] as $fieldName => $fieldConfiguration) {
148 if (!isset($fieldConfiguration[
'label'])) {
151 $result[
'processedTca'][
'columns'][$fieldName][
'label'] = $languageService->sL($fieldConfiguration[
'label']);