Added feature #10853: New Multimedia CE
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 # TYPO3 SVN ID: $Id$
3 if (!defined ('TYPO3_MODE')) die ('Access denied.');
4
5 include_once(t3lib_extMgm::extPath($_EXTKEY) . 'tslib/hooks/class.tx_cms_mediaitems.php');
6
7 if (TYPO3_MODE == 'BE') {
8 t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/');
9 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.xml');
10 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:cms/locallang_csh_webinfo.xml');
11
12 t3lib_extMgm::insertModuleFunction(
13 'web_info',
14 'tx_cms_webinfo_page',
15 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php',
16 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page'
17 );
18 t3lib_extMgm::insertModuleFunction(
19 'web_info',
20 'tx_cms_webinfo_lang',
21 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo_lang.php',
22 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_lang'
23 );
24 }
25
26
27 // ******************************************************************
28 // Extend 'pages'-table
29 // ******************************************************************
30
31 if (TYPO3_MODE=='BE') {
32 // Setting ICON_TYPES (obsolete by the removal of the plugin_mgm extension)
33 $ICON_TYPES = array(
34 'shop' => array('icon' => 'gfx/i/modules_shop.gif'),
35 'board' => array('icon' => 'gfx/i/modules_board.gif'),
36 'news' => array('icon' => 'gfx/i/modules_news.gif'),
37 'fe_users' => array('icon' => 'gfx/i/fe_users.gif'),
38 'approve' => array('icon' => 'gfx/state_checked.png'),
39 );
40 }
41
42 // Adding pages_types:
43 // t3lib_div::array_merge() MUST be used!
44 $PAGES_TYPES = t3lib_div::array_merge(array(
45 '3' => array(
46 'icon' => 'pages_link.gif'
47 ),
48 '4' => array(
49 'icon' => 'pages_shortcut.gif'
50 ),
51 '5' => array(
52 'icon' => 'pages_notinmenu.gif'
53 ),
54 '6' => array(
55 'type' => 'web',
56 'icon' => 'be_users_section.gif',
57 'allowedTables' => '*'
58 ),
59 '7' => array(
60 'icon' => 'pages_mountpoint.gif'
61 ),
62 '199' => array( // TypoScript: Limit is 200. When the doktype is 200 or above, the page WILL NOT be regarded as a 'page' by TypoScript. Rather is it a system-type page
63 'type' => 'sys',
64 'icon' => 'spacer_icon.gif',
65 )
66 ),$PAGES_TYPES);
67
68 // Add allowed records to pages:
69 t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain');
70
71 // Merging in CMS doktypes:
72 array_splice(
73 $TCA['pages']['columns']['doktype']['config']['items'],
74 1,
75 0,
76 array(
77 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.4', '6', 'i/be_users_section.gif'),
78 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.link', '--div--'),
79 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.2', '4', 'i/pages_shortcut.gif'),
80 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.5', '7', 'i/pages_mountpoint.gif'),
81 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.8', '3', 'i/pages_link.gif'),
82 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.special', '--div--')
83 )
84 );
85 array_splice(
86 $TCA['pages']['columns']['doktype']['config']['items'],
87 10,
88 0,
89 array(
90 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.7', '199', 'i/spacer_icon.gif')
91 )
92 );
93 array_unshift(
94 $TCA['pages']['columns']['doktype']['config']['items'],
95 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.page', '--div--')
96 );
97
98 // Setting enablecolumns:
99 $TCA['pages']['ctrl']['enablecolumns'] = array (
100 'disabled' => 'hidden',
101 'starttime' => 'starttime',
102 'endtime' => 'endtime',
103 'fe_group' => 'fe_group',
104 );
105
106 // Enable Tabs
107 $TCA['pages']['ctrl']['dividers2tabs'] = 1;
108
109 // Adding default value columns:
110 $TCA['pages']['ctrl']['useColumnsForDefaultValues'].=',fe_group,hidden';
111 $TCA['pages']['ctrl']['transForeignTable'] = 'pages_language_overlay';
112
113 // Adding new columns:
114 $TCA['pages']['columns'] = array_merge($TCA['pages']['columns'],array(
115 'hidden' => array (
116 'exclude' => 1,
117 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
118 'config' => array (
119 'type' => 'check',
120 'default' => '1'
121 )
122 ),
123 'starttime' => array (
124 'exclude' => 1,
125 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
126 'config' => array (
127 'type' => 'input',
128 'size' => '8',
129 'max' => '20',
130 'eval' => 'date',
131 'checkbox' => '0',
132 'default' => '0'
133 )
134 ),
135 'endtime' => array (
136 'exclude' => 1,
137 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
138 'config' => array (
139 'type' => 'input',
140 'size' => '8',
141 'max' => '20',
142 'eval' => 'date',
143 'checkbox' => '0',
144 'default' => '0',
145 'range' => array (
146 'upper' => mktime(0,0,0,12,31,2020),
147 )
148 )
149 ),
150 'layout' => array (
151 'exclude' => 1,
152 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.layout',
153 'config' => array (
154 'type' => 'select',
155 'items' => array (
156 array('LLL:EXT:lang/locallang_general.xml:LGL.normal', '0'),
157 array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.1', '1'),
158 array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.2', '2'),
159 array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.3', '3')
160 ),
161 'default' => '0'
162 )
163 ),
164 'fe_group' => array (
165 'exclude' => 1,
166 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
167 'config' => array (
168 'type' => 'select',
169 'size' => 5,
170 'maxitems' => 20,
171 'items' => array (
172 array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
173 array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
174 array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
175 ),
176 'exclusiveKeys' => '-1,-2',
177 'foreign_table' => 'fe_groups',
178 'foreign_table_where' => 'ORDER BY fe_groups.title',
179 )
180 ),
181 'extendToSubpages' => array (
182 'exclude' => 1,
183 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.extendToSubpages',
184 'config' => array (
185 'type' => 'check'
186 )
187 ),
188 'nav_title' => array (
189 'exclude' => 1,
190 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_title',
191 'config' => array (
192 'type' => 'input',
193 'size' => '30',
194 'max' => '255',
195 'checkbox' => '',
196 'eval' => 'trim'
197 )
198 ),
199 'nav_hide' => array (
200 'exclude' => 1,
201 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_hide',
202 'config' => array (
203 'type' => 'check'
204 )
205 ),
206 'subtitle' => array (
207 'exclude' => 1,
208 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.subtitle',
209 'config' => array (
210 'type' => 'input',
211 'size' => '30',
212 'max' => '255',
213 'eval' => ''
214 )
215 ),
216 'target' => array (
217 'exclude' => 1,
218 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.target',
219 'config' => array (
220 'type' => 'input',
221 'size' => '20',
222 'max' => '80',
223 'eval' => 'trim',
224 'checkbox' => ''
225 )
226 ),
227 'alias' => array (
228 'displayCond' => 'VERSION:IS:false',
229 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.alias',
230 'config' => array (
231 'type' => 'input',
232 'size' => '10',
233 'max' => '32',
234 'eval' => 'nospace,alphanum_x,lower,unique',
235 'softref' => 'notify'
236 )
237 ),
238 'url' => array (
239 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
240 'config' => array (
241 'type' => 'input',
242 'size' => '25',
243 'max' => '255',
244 'eval' => 'trim,required',
245 'softref' => 'url'
246 )
247 ),
248 'urltype' => array (
249 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type',
250 'config' => array (
251 'type' => 'select',
252 'items' => array (
253 array('', '0'),
254 array('http://', '1'),
255 array('https://', '4'),
256 array('ftp://', '2'),
257 array('mailto:', '3')
258 ),
259 'default' => '1'
260 )
261 ),
262 'lastUpdated' => array (
263 'exclude' => 1,
264 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.lastUpdated',
265 'config' => array (
266 'type' => 'input',
267 'size' => '12',
268 'max' => '20',
269 'eval' => 'datetime',
270 'checkbox' => '0',
271 'default' => '0'
272 )
273 ),
274 'newUntil' => array (
275 'exclude' => 1,
276 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.newUntil',
277 'config' => array (
278 'type' => 'input',
279 'size' => '8',
280 'max' => '20',
281 'eval' => 'date',
282 'checkbox' => '0',
283 'default' => '0'
284 )
285 ),
286 'cache_timeout' => array (
287 'exclude' => 1,
288 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout',
289 'config' => array (
290 'type' => 'select',
291 'items' => array (
292 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
293 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.1', 60),
294 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.2', 300),
295 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.3', 900),
296 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.4', 1800),
297 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.5', 3600),
298 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.6', 14400),
299 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.7', 86400),
300 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.8', 172800),
301 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.9', 604800),
302 array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.10', 2678400)
303 ),
304 'default' => '0'
305 )
306 ),
307 'no_cache' => array (
308 'exclude' => 1,
309 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache',
310 'config' => array (
311 'type' => 'check'
312 )
313 ),
314 'no_search' => array (
315 'exclude' => 1,
316 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search',
317 'config' => array (
318 'type' => 'check'
319 )
320 ),
321 'shortcut' => array (
322 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
323 'config' => array (
324 'type' => 'group',
325 'internal_type' => 'db',
326 'allowed' => 'pages',
327 'size' => '3',
328 'maxitems' => '1',
329 'minitems' => '0',
330 'show_thumbs' => '1'
331 )
332 ),
333 'shortcut_mode' => array (
334 'exclude' => 1,
335 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
336 'config' => array (
337 'type' => 'select',
338 'items' => array (
339 array('', 0),
340 array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1', 1),
341 array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2', 2),
342 ),
343 'default' => '0'
344 )
345 ),
346 'content_from_pid' => array (
347 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid',
348 'config' => array (
349 'type' => 'group',
350 'internal_type' => 'db',
351 'allowed' => 'pages',
352 'size' => '1',
353 'maxitems' => '1',
354 'minitems' => '0',
355 'show_thumbs' => '1'
356 )
357 ),
358 'mount_pid' => array (
359 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid',
360 'config' => array (
361 'type' => 'group',
362 'internal_type' => 'db',
363 'allowed' => 'pages',
364 'size' => '1',
365 'maxitems' => '1',
366 'minitems' => '0',
367 'show_thumbs' => '1'
368 )
369 ),
370 'keywords' => array (
371 'exclude' => 1,
372 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.keywords',
373 'config' => array (
374 'type' => 'text',
375 'cols' => '40',
376 'rows' => '3'
377 )
378 ),
379 'description' => array (
380 'exclude' => 1,
381 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
382 'config' => array (
383 'type' => 'text',
384 'cols' => '40',
385 'rows' => '3'
386 )
387 ),
388 'abstract' => array (
389 'exclude' => 1,
390 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.abstract',
391 'config' => array (
392 'type' => 'text',
393 'cols' => '40',
394 'rows' => '3'
395 )
396 ),
397 'author' => array (
398 'exclude' => 1,
399 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.author',
400 'config' => array (
401 'type' => 'input',
402 'size' => '20',
403 'eval' => 'trim',
404 'max' => '80'
405 )
406 ),
407 'author_email' => array (
408 'exclude' => 1,
409 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
410 'config' => array (
411 'type' => 'input',
412 'size' => '20',
413 'eval' => 'trim',
414 'max' => '80',
415 'softref' => 'email[subst]'
416 )
417 ),
418 'media' => array (
419 'exclude' => 1,
420 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
421 'config' => array (
422 'type' => 'group',
423 'internal_type' => 'file',
424 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
425 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
426 'uploadfolder' => 'uploads/media',
427 'show_thumbs' => '1',
428 'size' => '3',
429 'maxitems' => '5',
430 'minitems' => '0'
431 )
432 ),
433 'is_siteroot' => array (
434 'exclude' => 1,
435 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.is_siteroot',
436 'config' => array (
437 'type' => 'check'
438 )
439 ),
440 'mount_pid_ol' => array (
441 'exclude' => 1,
442 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol',
443 'config' => array (
444 'type' => 'check'
445 )
446 ),
447 'module' => array (
448 'exclude' => 1,
449 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.module',
450 'config' => array (
451 'type' => 'select',
452 'items' => array (
453 array('', '', ''),
454 array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.1', 'shop', 'i/modules_shop.gif'),
455 array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.2', 'board', 'i/modules_board.gif'),
456 array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.3', 'news', 'i/modules_news.gif'),
457 array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.4', 'fe_users', 'i/fe_users.gif'),
458 array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.6', 'approve', 'state_checked.png')
459 ),
460 'default' => '',
461 'iconsInOptionTags' => 1,
462 'noIconsBelowSelect' => 1,
463 )
464 ),
465 'fe_login_mode' => array (
466 'exclude' => 1,
467 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode',
468 'config' => array (
469 'type' => 'select',
470 'items' => array (
471 array('', 0),
472 array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disable', 1),
473 array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enable', 2),
474 )
475 )
476 ),
477 'l18n_cfg' => array (
478 'exclude' => 1,
479 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg',
480 'config' => array (
481 'type' => 'check',
482 'items' => array (
483 array('LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.1', ''),
484 array($GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] ? 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2a' : 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2', ''),
485 ),
486 )
487 ),
488 ));
489
490 // Add columns to info-display list.
491 $TCA['pages']['interface']['showRecordFieldList'].=',alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout';
492
493
494 // Totally overriding all type-settings:
495 $TCA['pages']['types'] = array (
496 // normal
497 '1' => array('showitem' =>
498 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
499 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
500 --palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description,
501 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
502 media,
503 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
504 TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
505 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
506 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
507 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
508 '),
509 // external URL
510 '3' => array('showitem' =>
511 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
512 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url,
513 url;;;;3-3-3, urltype,
514 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
515 media,
516 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
517 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
518 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
519 starttime, endtime, fe_group, extendToSubpages,
520 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
521 '),
522 // shortcut
523 '4' => array('showitem' =>
524 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
525 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut,
526 shortcut;;;;3-3-3, shortcut_mode,
527 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
528 media,
529 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
530 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
531 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
532 starttime, endtime, fe_group, extendToSubpages,
533 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
534 '),
535 // not in menu
536 '5' => array('showitem' =>
537 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
538 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
539 media,
540 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
541 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
542 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
543 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
544 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
545 '),
546 // mount page
547 '7' => array('showitem' =>
548 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
549 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.mount,
550 mount_pid;;;;3-3-3, mount_pid_ol,
551 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
552 media,
553 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
554 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
555 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
556 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
557 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
558 '),
559 // spacer
560 '199' => array('showitem' =>
561 'doktype;;2;;1-1-1, hidden, title,
562 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
563 TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
564 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
565 '),
566 // sysfolder
567 '254' => array('showitem' =>
568 'doktype;;2;;1-1-1, hidden, title;LLL:EXT:lang/locallang_general.xml:LGL.title,
569 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
570 media,
571 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
572 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module,
573 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
574 '),
575 // trash
576 '255' => array('showitem' =>
577 'doktype;;2;;1-1-1, hidden, title,
578 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
579 ')
580 );
581
582 // Merging palette settings:
583 // t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
584 $TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],array(
585 '1' => array('showitem' => 'starttime, endtime, extendToSubpages'),
586 '2' => array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
587 '3' => array('showitem' => 'alias, target, no_cache, cache_timeout'),
588 '5' => array('showitem' => 'author, author_email', 'canNotCollapse' => 1)
589 ));
590
591
592 // if the compat version is less than 4.2, pagetype 2 ("Advanced")
593 // and pagetype 5 ("Not in menu") are added to TCA.
594 if (!t3lib_div::compat_version('4.2')) {
595 // Merging in CMS doktypes
596 array_splice(
597 $TCA['pages']['columns']['doktype']['config']['items'],
598 2,
599 0,
600 array(
601 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.0', '2', 'i/pages.gif'),
602 array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.3', '5', 'i/pages_notinmenu.gif'),
603 )
604 );
605 // setting the doktype 1 ("Standard") to show less fields
606 $TCA['pages']['types'][1] = array(
607 // standard
608 'showitem' =>
609 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
610 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
611 starttime, endtime, fe_group, extendToSubpages,
612 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
613 TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg,
614 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
615 ');
616 // adding doktype 2 ("Advanced")
617 $TCA['pages']['types'][2] = array(
618 'showitem' =>
619 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
620 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
621 abstract;;5;;3-3-3, keywords, description,
622 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
623 media,
624 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
625 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
626 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
627 TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
628 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
629 ');
630 }
631
632 // ******************************************************************
633 // This is the standard TypoScript content table, tt_content
634 // ******************************************************************
635 $TCA['tt_content'] = array (
636 'ctrl' => array (
637 'label' => 'header',
638 'label_alt' => 'subheader,bodytext',
639 'sortby' => 'sorting',
640 'tstamp' => 'tstamp',
641 'crdate' => 'crdate',
642 'cruser_id' => 'cruser_id',
643 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content',
644 'delete' => 'deleted',
645 'versioningWS' => 2,
646 'versioning_followPages' => true,
647 'origUid' => 't3_origuid',
648 'type' => 'CType',
649 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
650 'copyAfterDuplFields' => 'colPos,sys_language_uid',
651 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
652 'shadowColumnsForNewPlaceholders' => 'colPos',
653 'transOrigPointerField' => 'l18n_parent',
654 'transOrigDiffSourceField' => 'l18n_diffsource',
655 'languageField' => 'sys_language_uid',
656 'enablecolumns' => array (
657 'disabled' => 'hidden',
658 'starttime' => 'starttime',
659 'endtime' => 'endtime',
660 'fe_group' => 'fe_group',
661 ),
662 'typeicon_column' => 'CType',
663 'typeicons' => array (
664 'header' => 'tt_content_header.gif',
665 'textpic' => 'tt_content_textpic.gif',
666 'image' => 'tt_content_image.gif',
667 'bullets' => 'tt_content_bullets.gif',
668 'table' => 'tt_content_table.gif',
669 'splash' => 'tt_content_news.gif',
670 'uploads' => 'tt_content_uploads.gif',
671 'multimedia' => 'tt_content_mm.gif',
672 'menu' => 'tt_content_menu.gif',
673 'list' => 'tt_content_list.gif',
674 'mailform' => 'tt_content_form.gif',
675 'search' => 'tt_content_search.gif',
676 'login' => 'tt_content_login.gif',
677 'shortcut' => 'tt_content_shortcut.gif',
678 'script' => 'tt_content_script.gif',
679 'div' => 'tt_content_div.gif',
680 'html' => 'tt_content_html.gif'
681 ),
682 'mainpalette' => '15',
683 'thumbnail' => 'image',
684 'requestUpdate' => 'list_type,rte_enabled',
685 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php',
686 'dividers2tabs' => 1
687 )
688 );
689
690 // ******************************************************************
691 // fe_users
692 // ******************************************************************
693 $TCA['fe_users'] = array (
694 'ctrl' => array (
695 'label' => 'username',
696 'tstamp' => 'tstamp',
697 'crdate' => 'crdate',
698 'cruser_id' => 'cruser_id',
699 'fe_cruser_id' => 'fe_cruser_id',
700 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users',
701 'delete' => 'deleted',
702 'enablecolumns' => array (
703 'disabled' => 'disable',
704 'starttime' => 'starttime',
705 'endtime' => 'endtime'
706 ),
707 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
708 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
709 'dividers2tabs' => 1
710 ),
711 'feInterface' => array (
712 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
713 )
714 );
715
716 // ******************************************************************
717 // fe_groups
718 // ******************************************************************
719 $TCA['fe_groups'] = array (
720 'ctrl' => array (
721 'label' => 'title',
722 'tstamp' => 'tstamp',
723 'crdate' => 'crdate',
724 'cruser_id' => 'cruser_id',
725 'delete' => 'deleted',
726 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
727 'enablecolumns' => array (
728 'disabled' => 'hidden'
729 ),
730 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups',
731 'useColumnsForDefaultValues' => 'lockToDomain',
732 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php',
733 'dividers2tabs' => 1
734 )
735 );
736
737 // ******************************************************************
738 // sys_domain
739 // ******************************************************************
740 $TCA['sys_domain'] = array (
741 'ctrl' => array (
742 'label' => 'domainName',
743 'tstamp' => 'tstamp',
744 'crdate' => 'crdate',
745 'cruser_id' => 'cruser_id',
746 'sortby' => 'sorting',
747 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain',
748 'iconfile' => 'domain.gif',
749 'enablecolumns' => array (
750 'disabled' => 'hidden'
751 ),
752 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
753 )
754 );
755
756 // ******************************************************************
757 // pages_language_overlay
758 // ******************************************************************
759 $TCA['pages_language_overlay'] = array (
760 'ctrl' => array (
761 'label' => 'title',
762 'tstamp' => 'tstamp',
763 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay',
764 'versioningWS' => true,
765 'versioning_followPages' => true,
766 'origUid' => 't3_origuid',
767 'crdate' => 'crdate',
768 'cruser_id' => 'cruser_id',
769 'delete' => 'deleted',
770 'enablecolumns' => array (
771 'disabled' => 'hidden',
772 'starttime' => 'starttime',
773 'endtime' => 'endtime'
774 ),
775 'transOrigPointerField' => 'pid',
776 'transOrigPointerTable' => 'pages',
777 'transOrigDiffSourceField' => 'l18n_diffsource',
778 'shadowColumnsForNewPlaceholders' => 'title',
779 'languageField' => 'sys_language_uid',
780 'mainpalette' => 1,
781 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php',
782 'type' => 'doktype',
783 'dividers2tabs' => true
784 )
785 );
786
787
788 // ******************************************************************
789 // sys_template
790 // ******************************************************************
791 $TCA['sys_template'] = array (
792 'ctrl' => array (
793 'label' => 'title',
794 'tstamp' => 'tstamp',
795 'sortby' => 'sorting',
796 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
797 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template',
798 'versioningWS' => true,
799 'origUid' => 't3_origuid',
800 'crdate' => 'crdate',
801 'cruser_id' => 'cruser_id',
802 'delete' => 'deleted',
803 'adminOnly' => 1, // Only admin, if any
804 'iconfile' => 'template.gif',
805 'thumbnail' => 'resources',
806 'enablecolumns' => array (
807 'disabled' => 'hidden',
808 'starttime' => 'starttime',
809 'endtime' => 'endtime'
810 ),
811 'typeicon_column' => 'root',
812 'typeicons' => array (
813 '0' => 'template_add.gif'
814 ),
815 'dividers2tabs' => 1,
816 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
817 )
818 );
819
820 // ******************************************************************
821 // static_template
822 // ******************************************************************
823 $TCA['static_template'] = array (
824 'ctrl' => array (
825 'label' => 'title',
826 'tstamp' => 'tstamp',
827 'title' => 'LLL:EXT:cms/locallang_tca.xml:static_template',
828 'readOnly' => 1, // This should always be true, as it prevents the static templates from being altered
829 'adminOnly' => 1, // Only admin, if any
830 'rootLevel' => 1,
831 'is_static' => 1,
832 'default_sortby' => 'ORDER BY title',
833 'crdate' => 'crdate',
834 'iconfile' => 'template_standard.gif',
835 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
836 )
837 );
838
839 ?>