Hallo ins Forum,
ich habe mich an div. Manuals entlang gehangelt und komme auf erste Ergebnisse. Die Aufgabenstellung ist die, im BE einen neuen Tab für CE's anzulegen, in dem Bootstrap Komponenten auswählbar sind.
Mit einem Element hat das wunderbar geklappt, nun möchte ich ein zweites Element aufnehmen und weiß grad nicht weiter.
Meine ext_tables.php
<?php
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Boostrap 4 components');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
wizards.newContentElement.wizardItems.extra {
header = Bootstrap Components
elements {
Card {
icon = ../typo3conf/ext/bootstrap_components/Resources/Public/Images/Backend/ContentElements/Card.png
title = Card
description = Boostrap Card
tt_content_defValues {
CType = card
}
}
Carousel {
icon = ../typo3conf/ext/bootstrap_components/Resources/Public/Images/Backend/ContentElements/Carousel.png
title = Carousel
description = Boostrap Carousel
tt_content_defValues {
CType = carousel
}
}
}
show = *
}
}
');
?>
Und hier, in der tt_content.php weiß ich nicht wie das zweite Element "Carousel" richtig eingebunden wird.
<?php
$TCA = [
'types' => [
'card' => [
'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
header;Card-Überschrift,
image;Card-Bild,
bodytext;Card-Text,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended'
],
'carousel' => [
'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
header;Carousel-Überschrift,
subheader;Carousel-Untertext,
image;Carousel-Bild,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended'
]
],
'columns' => [
'CType' => [
'config' => [
'items' => [
'card' => [
'Card',
'card',
'EXT:boostrap_components/Resources/Public/Images/Backend/ContentElements/card.png'
]
]
]
]
]
];
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA']['tt_content'], $TCA);
Im Bereich Types habe ich es ja noch dazugewurstelt, aber wie krieg ich es im Bereich columns richtig rein? Vielleicht ist das so ja auch eher suboptimal.... :-/
Wie wäre es denn korrekt bzw. optimal... bzw. für Anfänger in dem Bereich verständlich.
Danke für Eure Hilfe und Gruß
mimii