Initial Commit
This commit is contained in:
37
packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php
Executable file
37
packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
(static function (): void {
|
||||
$l = 'LLL:EXT:vitec/Resources/Private/Language/locallang_containers.xlf:';
|
||||
|
||||
// Shared field: Background Variant for all VITEC containers
|
||||
ExtensionManagementUtility::addTCAcolumns('tt_content', [
|
||||
'tx_vitec_bg_variant' => [
|
||||
'label' => $l . 'bg_variant.label',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['label' => $l . 'bg_variant.option.none', 'value' => 'none'],
|
||||
['label' => $l . 'bg_variant.option.orange', 'value' => 'orange'],
|
||||
['label' => $l . 'bg_variant.option.blue', 'value' => 'blue'],
|
||||
['label' => $l . 'bg_variant.option.graphite', 'value' => 'graphite'],
|
||||
['label' => $l . 'bg_variant.option.midnight', 'value' => 'midnight'],
|
||||
],
|
||||
'default' => 'none',
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
// Register VITEC wizard group header
|
||||
ExtensionManagementUtility::addPageTSConfig(<<<TSCONFIG
|
||||
mod.wizards.newContentElement.wizardItems.vitec {
|
||||
header = LLL:EXT:vitec/Resources/Private/Language/locallang_containers.xlf:group.header
|
||||
show = *
|
||||
}
|
||||
TSCONFIG);
|
||||
})();
|
||||
Reference in New Issue
Block a user