[TASK] Streamline ext_localconf.php / ext_tables.php of sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
5 options.saveDocView = 1
6 options.saveDocNew = 1
7 options.saveDocNew.pages = 0
8 options.saveDocNew.sys_file = 0
9 options.disableDelete.sys_file = 1
10 TCAdefaults.tt_content.imagecols = 2
11 ');
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
13 mod.wizards.newContentElement {
14 renderMode = tabs
15 wizardItems {
16 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
17 common.elements {
18 header {
19 icon = gfx/c_wiz/regular_header.gif
20 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
21 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
22 tt_content_defValues {
23 CType = header
24 }
25 }
26 text {
27 icon = gfx/c_wiz/regular_text.gif
28 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
29 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
30 tt_content_defValues {
31 CType = text
32 }
33 }
34 textpic {
35 icon = gfx/c_wiz/text_image_right.gif
36 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_title
37 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_description
38 tt_content_defValues {
39 CType = textpic
40 imageorient = 17
41 }
42 }
43 image {
44 icon = gfx/c_wiz/images_only.gif
45 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_title
46 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_description
47 tt_content_defValues {
48 CType = image
49 }
50 }
51 bullets {
52 icon = gfx/c_wiz/bullet_list.gif
53 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_title
54 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_description
55 tt_content_defValues {
56 CType = bullets
57 }
58 }
59 table {
60 icon = gfx/c_wiz/table.gif
61 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_title
62 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_description
63 tt_content_defValues {
64 CType = table
65 }
66 }
67
68 }
69 common.show = header,text,textpic,image,bullets,table
70
71 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special
72 special.elements {
73 uploads {
74 icon = gfx/c_wiz/filelinks.gif
75 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_title
76 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_description
77 tt_content_defValues {
78 CType = uploads
79 }
80 }
81 multimedia {
82 icon = gfx/c_wiz/multimedia.gif
83 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_title
84 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_description
85 tt_content_defValues {
86 CType = multimedia
87 }
88 }
89 media {
90 icon = gfx/c_wiz/multimedia.gif
91 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_title
92 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_description
93 tt_content_defValues {
94 CType = media
95 }
96 }
97 menu {
98 icon = gfx/c_wiz/sitemap2.gif
99 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_title
100 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_description
101 tt_content_defValues {
102 CType = menu
103 menu_type = 0
104 }
105 }
106 html {
107 icon = gfx/c_wiz/html.gif
108 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_title
109 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_description
110 tt_content_defValues {
111 CType = html
112 }
113 }
114 div {
115 icon = gfx/c_wiz/div.gif
116 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_title
117 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_description
118 tt_content_defValues {
119 CType = div
120 }
121 }
122 shortcut {
123 icon = gfx/c_wiz/shortcut.gif
124 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_title
125 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_description
126 tt_content_defValues {
127 CType = shortcut
128 }
129 }
130
131 }
132 special.show = uploads,media,menu,html,div,shortcut
133
134 # dummy placeholder for forms group
135 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
136
137 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
138 plugins.elements {
139 general {
140 icon = gfx/c_wiz/user_defined.gif
141 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
142 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
143 tt_content_defValues.CType = list
144 }
145 }
146 plugins.show = *
147 }
148 }
149
150 ');
151
152 // Registering hooks for the treelist cache
153 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
154 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
155 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
156
157 // Register search keys
158 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
159 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
160 // Register hook to show preview info
161 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';