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