TYPO3ContentElements/Configuration/TCA/Overrides/tt_content.php

28 lines
997 B
PHP
Raw Normal View History

<?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', 'tt_content');