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