commit for base design
All checks were successful
Build / build (push) Successful in 2m54s
Build / deploy-stage (push) Successful in 2m50s
Build / switch-stage (push) Successful in 2m1s

This commit is contained in:
2024-12-11 21:30:25 +01:00
parent b3255df808
commit 948513cc41
14 changed files with 213 additions and 9 deletions

View File

@@ -0,0 +1,59 @@
<?php
defined('TYPO3') or die('Access denied.');
// Add Content Element
if (!is_array($GLOBALS['TCA']['tt_content']['types']['hero'] ?? false)) {
$GLOBALS['TCA']['tt_content']['types']['hero'] = [];
}
// Add content element to selector list
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'label' => 'Hero',
'value' => 'hero',
'icon' => 'favicon',
'group' => 'general',
],
'hero',
'after'
);
// Assign Icon
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['hero'] = 'favicon';
// Configure element type
$GLOBALS['TCA']['tt_content']['types']['hero'] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types']['hero'],
[
'previewRenderer' => \TYPO3\CMS\Frontend\Preview\TextpicPreviewRenderer::class,
'showitem' => '
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
--palette--;;general,
--palette--;;headers,
bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext_formlabel,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.images,
image,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
--palette--;;language,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
--palette--;;hidden,
--palette--;;access,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
categories,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
rowDescription,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
',
'columnsOverrides' => [
'bodytext' => [
'config' => [
'enableRichtext' => true,
],
],
],
]
);

View File

@@ -0,0 +1,9 @@
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
ExtensionManagementUtility::registerPageTSConfigFile(
'base_design',
'Configuration/TsConfig/Page/All.tsconfig',
'Base Design TsConfig'
);