SHOW:
|
|
- or go back to the newest paste.
1 | ##TYPOSCRIPT | |
2 | ||
3 | tt_content { | |
4 | - | shufflemix_template_new_my_slider < lib.contentElement |
4 | + | shufflemix_template_new_shufflemiximage < lib.contentElement |
5 | - | shufflemix_template_new_my_slider { |
5 | + | shufflemix_template_new_shufflemiximage { |
6 | - | templateName = MySlider |
6 | + | templateName = ShufflemixImage |
7 | dataProcessing { | |
8 | 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor | |
9 | 10.references.fieldName = assets | |
10 | } | |
11 | } | |
12 | } | |
13 | ||
14 | ##PAGETS | |
15 | ||
16 | mod.wizards.newContentElement.wizardItems.common { | |
17 | elements { | |
18 | shufflemix_template_new_shufflemiximage { | |
19 | - | shufflemix_template_new_my_Slider { |
19 | + | iconIdentifier = content-image |
20 | - | iconIdentifier = content-carousel-image |
20 | + | title = LLL:EXT:shufflemix_template_new/Resources/Private/Language/Tca.xlf:shufflemix_template_new_shufflemiximage.wizard.title |
21 | - | title = My Slider |
21 | + | description = LLL:EXT:your_extension_key/Resources/Private/Language/Tca.xlf:shufflemix_template_new_shufflemiximage.wizard.description |
22 | - | description = A content element to add one or more images |
22 | + | tt_content_defValues { |
23 | - | tt_content_defValues.CType = shufflemix_template_new_my_slider |
23 | + | CType = shufflemix_template_new_shufflemiximage |
24 | } | |
25 | } | |
26 | - | show := addToList(shufflemix_template_new_my_slider) |
26 | + | |
27 | show := addToList(shufflemix_template_new_shufflemiximage) | |
28 | } | |
29 | ||
30 | - | ##tt_content.php |
30 | + | |
31 | ||
32 | ##tt_content_my_slider.php | |
33 | <?php | |
34 | defined('TYPO3_MODE') || die(); | |
35 | - | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin( |
35 | + | |
36 | - | array( |
36 | + | // Adds the content element to the "Type" dropdown |
37 | - | 'My slider', |
37 | + | |
38 | - | 'shufflemix_template_new_my_slider', |
38 | + | 'tt_content', |
39 | - | 'EXT:core/Resources/Public/Icons/T3Icons/content/content-carousel-image.svg' |
39 | + | 'CType', |
40 | - | ), |
40 | + | |
41 | - | 'CType', |
41 | + | 'LLL:EXT:shufflemix_template_new/Resources/Private/Language/Tca.xlf:shufflemix_template_new_shuffelmiximage', |
42 | - | 'shufflemix_template_new' |
42 | + | 'Shufflemix Image', |
43 | 'shufflemix_image', | |
44 | 'shufflemix-image', | |
45 | 'image' | |
46 | ], | |
47 | 'image', | |
48 | 'after' | |
49 | - | 'tt_content', |
49 | + | |
50 | - | 'CType', |
50 | + | |
51 | ||
52 | - | 0 => 'My slider', |
52 | + | // Configure the default backend fields for the content element |
53 | - | 1 => 'shufflemix_template_new_my_slider', |
53 | + | $GLOBALS['TCA']['tt_content']['types']['shufflemix_tempplate_new_shufflemiximage'] = [ |
54 | - | 2 => 'shufflemix-template-new-my-slider' |
54 | + | 'showitem' =>' |
55 | - | ] |
55 | + | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, |
56 | --palette--;;general, | |
57 | --palette--;;headers, | |
58 | - | $GLOBALS['TCA']['tt_content']['types']['shufflemix_template_new_my_slider'] = [ |
58 | + | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.images,image, |
59 | - | 'showitem' => ' |
59 | + | --palette--;;mediaAdjustments, |
60 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.general;general, |
60 | + | --palette--;;gallerySettings, |
61 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.header;header, |
61 | + | --palette--;;imagelinks, |
62 | - | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,assets, |
62 | + | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, |
63 | - | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, |
63 | + | --palette--;;frames, |
64 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames, |
64 | + | --palette--;;appearanceLinks, |
65 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.appearanceLinks;appearanceLinks, |
65 | + | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, |
66 | - | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:tabs.access, |
66 | + | --palette--;;language, |
67 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.visibility;visibility, |
67 | + | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, |
68 | - | --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:palette.access;access, |
68 | + | --palette--;;hidden, |
69 | - | --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xml:tabs.extended' |
69 | + | --palette--;;access, |
70 | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories, | |
71 | --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.tabs.category,categories, | |
72 | - | ##constants_overwrites.txt |
72 | + | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,rowDescription, |
73 | --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended, | |
74 | - | lib.contentElement { |
74 | + | --div--;LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xlf:gridElements' |
75 | ]; | |
76 | ||
77 | - | layoutRootPaths.200 = EXT:shufflemix_template_new/Resources/Private/Layout/ |
77 | + | |
78 | ||
79 | ##constants_overwrites.txt | |
80 | ||
81 | - | ##sys_template.php |
81 | + | lib.contentElement { |
82 | - | // Add an entry in the static template list found in sys_templates for static TS |
82 | + | |
83 | - | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( |
83 | + | |
84 | - | 'shufflemix_template_new', |
84 | + | layoutRootPaths.200 = EXT:shufflemix_template_new/Resources/Private/Layout/ |
85 | - | 'Configuration/TypoScript', |
85 | + | |
86 | - | 'My Slider' |
86 | + | |
87 | ||
88 | ##template | |
89 | <html data-namespace-typo3-fluid="true" | |
90 | xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"> | |
91 | <f:debug>{_all}</f:debug> | |
92 | </html> | |
93 |