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