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