TYPO3ContentElements/Configuration/TCA/Overrides/tt_content.php

55 lines
2.1 KiB
PHP
Raw Permalink Normal View History

<?php
2023-07-06 16:39:52 +02:00
(function (string $extensionKey) {
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:tt_content.';
2023-07-06 16:39:52 +02:00
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA']['tt_content'], [
'columns' => [
'CType' => [
'config' => [
'itemGroups' => [
'skilldisplay' => $languagePath . 'CType.itemGroups.skilldisplay',
],
],
],
'skilldisplay_skills' => [
2023-07-06 16:39:52 +02:00
'exclude' => true,
'label' => $languagePath . 'skilldisplay_skills',
'description' => $languagePath . 'skilldisplay_skills.description',
'config' => [
'type' => 'input',
'eval' => 'required',
'size' => 10,
],
],
'skilldisplay_skillset' => [
2023-07-06 16:39:52 +02:00
'exclude' => true,
'label' => $languagePath . 'skilldisplay_skillset',
'description' => $languagePath . 'skilldisplay_skillset.description',
'config' => [
'type' => 'input',
'eval' => 'required',
'size' => 10,
'valuePicker' => [
'mode' => 'append',
// filled by ValuePickerItemDataProvider
'items' => [],
],
],
],
'skilldisplay_campaign' => [
2023-07-06 16:39:52 +02:00
'exclude' => true,
'label' => $languagePath . 'skilldisplay_campaign',
'description' => $languagePath . 'skilldisplay_campaign.description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
2023-07-06 16:53:14 +02:00
'itemsProcFunc' => \SkillDisplay\SkilldisplayContent\TcaEnhancer::class
. '->' . 'getCampaignsForTCA',
'items' => []
]
],
],
]);
2023-07-06 16:39:52 +02:00
})('skilldisplay_content');