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