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