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