[TASK] Cleanup ext_localconf.php of sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 if (TYPO3_MODE === 'BE') {
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
8 options.saveDocView = 1
9 options.saveDocNew = 1
10 options.saveDocNew.pages = 0
11 options.saveDocNew.sys_file = 0
12 options.disableDelete.sys_file = 1
13 TCAdefaults.tt_content.imagecols = 2
14 ');
15 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
16 mod.wizards.newContentElement {
17 renderMode = tabs
18 wizardItems {
19 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
20 common.elements {
21 header {
22 icon = gfx/c_wiz/regular_header.gif
23 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
24 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
25 tt_content_defValues {
26 CType = header
27 }
28 }
29 text {
30 icon = gfx/c_wiz/regular_text.gif
31 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
32 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
33 tt_content_defValues {
34 CType = text
35 }
36 }
37 textpic {
38 icon = gfx/c_wiz/text_image_right.gif
39 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_title
40 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_description
41 tt_content_defValues {
42 CType = textpic
43 imageorient = 17
44 }
45 }
46 image {
47 icon = gfx/c_wiz/images_only.gif
48 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_title
49 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_description
50 tt_content_defValues {
51 CType = image
52 }
53 }
54 bullets {
55 icon = gfx/c_wiz/bullet_list.gif
56 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_title
57 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_description
58 tt_content_defValues {
59 CType = bullets
60 }
61 }
62 table {
63 icon = gfx/c_wiz/table.gif
64 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_title
65 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_description
66 tt_content_defValues {
67 CType = table
68 }
69 }
70
71 }
72 common.show = header,text,textpic,image,bullets,table
73
74 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special
75 special.elements {
76 uploads {
77 icon = gfx/c_wiz/filelinks.gif
78 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_title
79 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_description
80 tt_content_defValues {
81 CType = uploads
82 }
83 }
84 multimedia {
85 icon = gfx/c_wiz/multimedia.gif
86 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_title
87 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_description
88 tt_content_defValues {
89 CType = multimedia
90 }
91 }
92 media {
93 icon = gfx/c_wiz/multimedia.gif
94 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_title
95 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_description
96 tt_content_defValues {
97 CType = media
98 }
99 }
100 menu {
101 icon = gfx/c_wiz/sitemap2.gif
102 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_title
103 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_description
104 tt_content_defValues {
105 CType = menu
106 menu_type = 0
107 }
108 }
109 html {
110 icon = gfx/c_wiz/html.gif
111 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_title
112 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_description
113 tt_content_defValues {
114 CType = html
115 }
116 }
117 div {
118 icon = gfx/c_wiz/div.gif
119 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_title
120 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_description
121 tt_content_defValues {
122 CType = div
123 }
124 }
125 shortcut {
126 icon = gfx/c_wiz/shortcut.gif
127 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_title
128 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_description
129 tt_content_defValues {
130 CType = shortcut
131 }
132 }
133
134 }
135 special.show = uploads,media,menu,html,div,shortcut
136
137 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
138 forms.elements {
139 mailform {
140 icon = gfx/c_wiz/mailform.gif
141 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_title
142 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_description
143 tt_content_defValues {
144 CType = mailform
145 bodytext (
146 # Example content:
147 Name: | *name = input,40 | Enter your name here
148 Email: | *email=input,40 |
149 Address: | address=textarea,40,5 |
150 Contact me: | tv=check | 1
151
152 |formtype_mail = submit | Send form!
153 |html_enabled=hidden | 1
154 |subject=hidden| This is the subject
155 )
156 }
157 }
158 search {
159 icon = gfx/c_wiz/searchform.gif
160 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_title
161 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_description
162 tt_content_defValues {
163 CType = search
164 }
165 }
166 }
167 forms.show = mailform,search
168
169 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
170 plugins.elements {
171 general {
172 icon = gfx/c_wiz/user_defined.gif
173 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
174 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
175 tt_content_defValues.CType = list
176 }
177 }
178 plugins.show = *
179 }
180 }
181
182 ');
183 }
184
185 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
186 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
187
188 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
189 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
190 'title' => 'CMS Frontend',
191 'version' => 4000000,
192 'description' => '<ul>' . '<li><p>The extension simluatestatic has been removed in TYPO3 6.0</p></li>' . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>' . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>' . '</ul>'
193 );
194 }
195
196 // Registering hooks for the treelist cache
197 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
198 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
199 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
200
201 if (TYPO3_MODE === 'FE') {
202 // Register the core media wizard provider
203 \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider('TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider');
204 // Register eID provider for ExtDirect for the frontend
205 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
206 }
207 // Register search keys
208 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
209 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
210 // Register hook to show preview info
211 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';