Fixed issue #16712: Cleanup: centralize TYPO3 urls (Thanks to Steffen Kamper)
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
1 <?php
2 # TYPO3 SVN ID: $Id$
3 if (!defined ('TYPO3_MODE')) die ('Access denied.');
4
5 t3lib_extMgm::addUserTSConfig('
6 options.saveDocView = 1
7 options.saveDocNew = 1
8 options.saveDocNew.pages = 0
9 options.saveDocNew.pages_language_overlay = 0
10 ');
11
12 t3lib_extMgm::addPageTSConfig('
13 mod.wizards.newContentElement.wizardItems {
14 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common
15 common.elements {
16 text {
17 icon = gfx/c_wiz/regular_text.gif
18 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title
19 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_description
20 tt_content_defValues {
21 CType = text
22 }
23 }
24 textpic {
25 icon = gfx/c_wiz/text_image_right.gif
26 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_title
27 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_description
28 tt_content_defValues {
29 CType = textpic
30 imageorient = 17
31 }
32 }
33 image {
34 icon = gfx/c_wiz/images_only.gif
35 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_title
36 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description
37 tt_content_defValues {
38 CType = image
39 imagecols = 2
40 }
41 }
42 bullets {
43 icon = gfx/c_wiz/bullet_list.gif
44 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_title
45 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_description
46 tt_content_defValues {
47 CType = bullets
48 }
49 }
50 table {
51 icon = gfx/c_wiz/table.gif
52 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_title
53 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_description
54 tt_content_defValues {
55 CType = table
56 }
57 }
58
59 }
60 common.show = text,textpic,image,bullets,table
61
62 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special
63 special.elements {
64 uploads {
65 icon = gfx/c_wiz/filelinks.gif
66 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_title
67 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_description
68 tt_content_defValues {
69 CType = uploads
70 }
71 }
72 multimedia {
73 icon = gfx/c_wiz/multimedia.gif
74 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_title
75 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_description
76 tt_content_defValues {
77 CType = multimedia
78 }
79 }
80 media {
81 icon = gfx/c_wiz/multimedia.gif
82 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_title
83 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_description
84 tt_content_defValues {
85 CType = media
86 }
87 }
88 menu {
89 icon = gfx/c_wiz/sitemap2.gif
90 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_title
91 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_description
92 tt_content_defValues {
93 CType = menu
94 menu_type = 2
95 }
96 }
97 html {
98 icon = gfx/c_wiz/html.gif
99 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_title
100 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_description
101 tt_content_defValues {
102 CType = html
103 }
104 }
105 div {
106 icon = gfx/c_wiz/div.gif
107 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_title
108 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_description
109 tt_content_defValues {
110 CType = div
111 }
112 }
113
114 }
115 special.show = uploads,media,menu,html,div
116
117 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms
118 forms.elements {
119 mailform {
120 icon = gfx/c_wiz/mailform.gif
121 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_title
122 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_description
123 tt_content_defValues {
124 CType = mailform
125 bodytext (
126 # Example content:
127 Name: | *name = input,40 | Enter your name here
128 Email: | *email=input,40 |
129 Address: | address=textarea,40,5 |
130 Contact me: | tv=check | 1
131
132 |formtype_mail = submit | Send form!
133 |html_enabled=hidden | 1
134 |subject=hidden| This is the subject
135 )
136 }
137 }
138 search {
139 icon = gfx/c_wiz/searchform.gif
140 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_title
141 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_description
142 tt_content_defValues {
143 CType = search
144 }
145 }
146 login {
147 icon = gfx/c_wiz/login_form.gif
148 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title
149 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description
150 tt_content_defValues {
151 CType = login
152 }
153 }
154
155 }
156 forms.show = mailform,search,login
157
158 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins
159 plugins.elements {
160 general {
161 icon = gfx/c_wiz/user_defined.gif
162 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title
163 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description
164 tt_content_defValues.CType = list
165 }
166 }
167 plugins.show = *
168 }
169
170 ');
171
172 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
173 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
174
175 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
176 'title' => 'CMS Frontend',
177 'version' => 4000000,
178 'description' => '<ul>' .
179 '<li><p>Word separator character for simulateStaticDocument is changed from ' .
180 'underscore (_) to hyphen (-) to make URLs more friendly for search engines' .
181 'URLs that are already existing (e.g. external links to your site) will still work like before.</p>' .
182 '<p>You can set the separator character back to an underscore by putting the following line into the '.
183 '<strong>Setup</strong> section of your Page TypoScript template:</p>' .
184 '<p style="margin-top: 5px; white-space: nowrap;"><code>config.simulateStaticDocuments_replacementChar = _</code></p></li>'.
185 '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>'.
186 '<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>'.
187 '</ul>',
188 );
189
190
191 // registering hooks for the treelist cache
192 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
193 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
194 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
195
196 if (TYPO3_MODE === 'FE') {
197 // Register the core media wizard provider
198 tslib_mediaWizardManager::registerMediaWizardProvider('tslib_mediaWizardCoreProvider');
199 // register eID provider for ExtDirect for the frontend
200 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
201 }
202
203 // register search keys
204 $GLOBALS ['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
205 $GLOBALS ['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
206
207 ?>