2020-09-21 16:36:01 +02:00
|
|
|
<?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,
|
|
|
|
],
|
|
|
|
],
|
2020-09-22 14:03:20 +02:00
|
|
|
'skilldisplay_skillset' => [
|
|
|
|
'exclude' => 1,
|
|
|
|
'label' => $languagePath . 'skilldisplay_skillset',
|
|
|
|
'description' => $languagePath . 'skilldisplay_skillset.description',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'eval' => 'int,required',
|
|
|
|
'size' => 10,
|
|
|
|
],
|
|
|
|
],
|
2020-11-27 23:10:46 +01:00
|
|
|
'skilldisplay_campaign' => [
|
2021-01-22 11:33:38 +01:00
|
|
|
'exclude' => 1,
|
2020-11-27 23:10:46 +01:00
|
|
|
'label' => $languagePath . 'skilldisplay_campaign',
|
2021-01-22 11:33:38 +01:00
|
|
|
'description' => $languagePath . 'skilldisplay_campaign.description',
|
2020-11-27 23:10:46 +01:00
|
|
|
'config' => [
|
|
|
|
'type' => 'select',
|
|
|
|
'renderType' => 'selectSingle',
|
2021-01-25 16:02:17 +01:00
|
|
|
'itemsProcFunc' => \SkillDisplay\SkilldisplayContent\TcaEnhancer::class
|
|
|
|
. '->' . 'getCampaignsForTCA',
|
2020-11-27 23:10:46 +01:00
|
|
|
'items' => []
|
|
|
|
]
|
|
|
|
],
|
2020-09-21 16:36:01 +02:00
|
|
|
],
|
|
|
|
]);
|
2021-01-25 16:02:17 +01:00
|
|
|
})('skilldisplay_content', 'tt_content');
|