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