TYPO3ContentElements/Configuration/TCA/Overrides/tt_content.php
Daniel Siepmann 0adaafa182
Add missing translation to new field
The new field was introduced without any label.
That label is added, together with description and exclude.
This keeps consistency and explanation to editors.
2021-01-23 15:53:07 +01:00

48 lines
1.9 KiB
PHP

<?php
(function (string $extensionKey, string $tableName) {
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.';
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
'columns' => [
'CType' => [
'config' => [
'itemGroups' => [
'skilldisplay' => $languagePath . 'CType.itemGroups.skilldisplay',
],
],
],
'skilldisplay_skills' => [
'exclude' => 1,
'label' => $languagePath . 'skilldisplay_skills',
'description' => $languagePath . 'skilldisplay_skills.description',
'config' => [
'type' => 'input',
'eval' => 'required',
'size' => 10,
],
],
'skilldisplay_skillset' => [
'exclude' => 1,
'label' => $languagePath . 'skilldisplay_skillset',
'description' => $languagePath . 'skilldisplay_skillset.description',
'config' => [
'type' => 'input',
'eval' => 'int,required',
'size' => 10,
],
],
'skilldisplay_campaign' => [
'exclude' => 1,
'label' => $languagePath . 'skilldisplay_campaign',
'description' => $languagePath . 'skilldisplay_campaign.description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'itemsProcFunc' => \SkillDisplay\Typo3Extension\TcaEnhancer::class . '->' . 'getCampaignsForTCA',
'items' => []
]
],
],
]);
})('skilldisplay', 'tt_content');