[BUGFIX] Add more entropy to uniqid
[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 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
135 forms.elements {
136 mailform {
137 icon = gfx/c_wiz/mailform.gif
138 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_title
139 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_description
140 tt_content_defValues {
141 CType = mailform
142 bodytext (
143 # Example content:
144 Name: | *name = input,40 | Enter your name here
145 Email: | *email=input,40 |
146 Address: | address=textarea,40,5 |
147 Contact me: | tv=check | 1
148
149 |formtype_mail = submit | Send form!
150 |html_enabled=hidden | 1
151 |subject=hidden| This is the subject
152 )
153 }
154 }
155 search {
156 icon = gfx/c_wiz/searchform.gif
157 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_title
158 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_description
159 tt_content_defValues {
160 CType = search
161 }
162 }
163 }
164 forms.show = mailform,search
165
166 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
167 plugins.elements {
168 general {
169 icon = gfx/c_wiz/user_defined.gif
170 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
171 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
172 tt_content_defValues.CType = list
173 }
174 }
175 plugins.show = *
176 }
177 }
178
179 ');
180
181
182 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
183 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
184 'title' => 'CMS Frontend',
185 'version' => 4000000,
186 '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>'
187 );
188 }
189
190 // Registering hooks for the treelist cache
191 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
192 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
193 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
194
195 // Register search keys
196 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
197 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
198 // Register hook to show preview info
199 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';