Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##TYPOSCRIPT
- tt_content {
- shufflemix_template_new_my_slider < lib.contentElement
- shufflemix_template_new_my_slider {
- templateName = MySlider
- dataProcessing {
- 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
- 10.references.fieldName = assets
- }
- }
- }
- ##PAGETS
- mod.wizards.newContentElement.wizardItems.common {
- elements {
- shufflemix_template_new_my_Slider {
- iconIdentifier = content-carousel-image
- title = My Slider
- description = A content element to add one or more images
- tt_content_defValues.CType = shufflemix_template_new_my_slider
- }
- }
- show := addToList(shufflemix_template_new_my_slider)
- }
- ##tt_content.php
- <?php
- defined('TYPO3_MODE') || die();
- \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(
- array(
- 'My slider',
- 'shufflemix_template_new_my_slider',
- 'EXT:core/Resources/Public/Icons/T3Icons/content/content-carousel-image.svg'
- ),
- 'CType',
- 'shufflemix_template_new'
- );
- ##tt_content_my_slider.php
- \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
- 'tt_content',
- 'CType',
- [
- 0 => 'My slider',
- 1 => 'shufflemix_template_new_my_slider',
- 2 => 'shufflemix-template-new-my-slider'
- ]
- );
- $GLOBALS['TCA']['tt_content']['types']['shufflemix_template_new_my_slider'] = [
- 'showitem' => '
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.general;general,
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.header;header,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,assets,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.appearanceLinks;appearanceLinks,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:tabs.access,
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.visibility;visibility,
- --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.access;access,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:tabs.extended'
- ];
- ##constants_overwrites.txt
- lib.contentElement {
- templateRootPaths.200 = EXT:shufflemix_template_new/Resources/Private/Templates/
- partialRootPaths.200 = EXT:shufflemix_template_new/Resources/Private/Partials/
- layoutRootPaths.200 = EXT:shufflemix_template_new/Resources/Private/Layout/
- }
- ##sys_template.php
- // Add an entry in the static template list found in sys_templates for static TS
- \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
- 'shufflemix_template_new',
- 'Configuration/TypoScript',
- 'My Slider'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement