mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-12-22 22:36:09 +01:00
28 lines
997 B
PHP
28 lines
997 B
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', 'tt_content');
|