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