Implemented versioning API, phase 1 (tcemain). See changelog
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 # TYPO3 CVS 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.php: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.php: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
31 $ICON_TYPES = Array(
32 'shop' => Array('icon' => 'modules_shop.gif'),
33 'board' => Array('icon' => 'modules_board.gif'),
34 'news' => Array('icon' => 'modules_news.gif'),
35 'dmail' => Array('icon' => 'modules_dmail.gif'),
36 'fe_users' => Array('icon' => 'modules_fe_users.gif'),
37 'approve' => Array('icon' => 'modules_approvals.gif')
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 '7' => Array(
54 'icon' => 'pages_mountpoint.gif'
55 ),
56 '6' => Array(
57 'type' => 'web',
58 'icon' => 'be_users_section.gif',
59 'allowedTables' => '*'
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.php:pages.doktype.I.0', '2'),
77 Array('LLL:EXT:lang/locallang_general.php:LGL.external', '3'),
78 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.2', '4'),
79 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.3', '5'),
80 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.4', '6'),
81 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.5', '7'),
82 Array('-----', '--div--'),
83 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.7', '199')
84 )
85 );
86
87 // Setting enablecolumns:
88 $TCA['pages']['ctrl']['enablecolumns'] = Array (
89 'disabled' => 'hidden',
90 'starttime' => 'starttime',
91 'endtime' => 'endtime',
92 'fe_group' => 'fe_group',
93 );
94
95 // Adding default value columns:
96 $TCA['pages']['ctrl']['useColumnsForDefaultValues'].=',fe_group,hidden';
97
98 // Adding new columns:
99 $TCA['pages']['columns'] = array_merge($TCA['pages']['columns'],Array(
100 'hidden' => Array (
101 'exclude' => 1,
102 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.hidden',
103 'config' => Array (
104 'type' => 'check',
105 'default' => '1'
106 )
107 ),
108 'starttime' => Array (
109 'exclude' => 1,
110 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
111 'config' => Array (
112 'type' => 'input',
113 'size' => '8',
114 'max' => '20',
115 'eval' => 'date',
116 'checkbox' => '0',
117 'default' => '0'
118 )
119 ),
120 'endtime' => Array (
121 'exclude' => 1,
122 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
123 'config' => Array (
124 'type' => 'input',
125 'size' => '8',
126 'max' => '20',
127 'eval' => 'date',
128 'checkbox' => '0',
129 'default' => '0',
130 'range' => Array (
131 'upper' => mktime(0,0,0,12,31,2020),
132 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
133 )
134 )
135 ),
136 'layout' => Array (
137 'exclude' => 1,
138 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.layout',
139 'config' => Array (
140 'type' => 'select',
141 'items' => Array (
142 Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
143 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.1', '1'),
144 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.2', '2'),
145 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.3', '3')
146 ),
147 'default' => '0'
148 )
149 ),
150 'fe_group' => Array (
151 'exclude' => 1,
152 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
153 'config' => Array (
154 'type' => 'select',
155 'items' => Array (
156 Array('', 0),
157 Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
158 Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
159 Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
160 ),
161 'foreign_table' => 'fe_groups'
162 )
163 ),
164 'extendToSubpages' => Array (
165 'exclude' => 1,
166 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.extendToSubpages',
167 'config' => Array (
168 'type' => 'check'
169 )
170 ),
171 'nav_title' => Array (
172 'exclude' => 1,
173 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.nav_title',
174 'config' => Array (
175 'type' => 'input',
176 'size' => '30',
177 'max' => '256',
178 'checkbox' => '',
179 'eval' => 'trim'
180 )
181 ),
182 'nav_hide' => Array (
183 'exclude' => 1,
184 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.nav_hide',
185 'config' => Array (
186 'type' => 'check'
187 )
188 ),
189 'subtitle' => Array (
190 'exclude' => 1,
191 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.subtitle',
192 'config' => Array (
193 'type' => 'input',
194 'size' => '30',
195 'max' => '256',
196 'eval' => ''
197 )
198 ),
199 'target' => Array (
200 'exclude' => 1,
201 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.target',
202 'config' => Array (
203 'type' => 'input',
204 'size' => '7',
205 'max' => '20',
206 'eval' => 'trim',
207 'checkbox' => ''
208 )
209 ),
210 'alias' => Array (
211 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.alias',
212 'config' => Array (
213 'type' => 'input',
214 'size' => '10',
215 'max' => '20',
216 'eval' => 'nospace,alphanum_x,lower,unique'
217 )
218 ),
219 'url' => Array (
220 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
221 'config' => Array (
222 'type' => 'input',
223 'size' => '25',
224 'max' => '256',
225 'eval' => 'trim'
226 )
227 ),
228 'urltype' => Array (
229 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
230 'config' => Array (
231 'type' => 'select',
232 'items' => Array (
233 Array('', '0'),
234 Array('http://', '1'),
235 Array('ftp://', '2'),
236 Array('mailto:', '3')
237 ),
238 'default' => '1'
239 )
240 ),
241 'lastUpdated' => Array (
242 'exclude' => 1,
243 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.lastUpdated',
244 'config' => Array (
245 'type' => 'input',
246 'size' => '12',
247 'max' => '20',
248 'eval' => 'datetime',
249 'checkbox' => '0',
250 'default' => '0'
251 )
252 ),
253 'newUntil' => Array (
254 'exclude' => 1,
255 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.newUntil',
256 'config' => Array (
257 'type' => 'input',
258 'size' => '8',
259 'max' => '20',
260 'eval' => 'date',
261 'checkbox' => '0',
262 'default' => '0'
263 )
264 ),
265 'cache_timeout' => Array (
266 'exclude' => 1,
267 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.cache_timeout',
268 'config' => Array (
269 'type' => 'select',
270 'items' => Array (
271 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0),
272 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.1', 60),
273 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.2', 5*60),
274 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.3', 15*60),
275 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.4', 30*60),
276 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.5', 60*60),
277 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.6', 4*60*60),
278 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.7', 24*60*60),
279 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.8', 2*24*60*60),
280 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.9', 7*24*60*60),
281 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.10', 31*24*60*60)
282 ),
283 'default' => '0'
284 )
285 ),
286 'no_cache' => Array (
287 'exclude' => 1,
288 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_cache',
289 'config' => Array (
290 'type' => 'check'
291 )
292 ),
293 'no_search' => Array (
294 'exclude' => 1,
295 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_search',
296 'config' => Array (
297 'type' => 'check'
298 )
299 ),
300 'shortcut' => Array (
301 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.shortcut_page',
302 'config' => Array (
303 'type' => 'group',
304 'internal_type' => 'db',
305 'allowed' => 'pages',
306 'size' => '3',
307 'maxitems' => '1',
308 'minitems' => '0',
309 'show_thumbs' => '1'
310 )
311 ),
312 'shortcut_mode' => Array (
313 'exclude' => 1,
314 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode',
315 'config' => Array (
316 'type' => 'select',
317 'items' => Array (
318 Array('', 0),
319 Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.1', 1),
320 Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.2', 2),
321 ),
322 'default' => '0'
323 )
324 ),
325 'content_from_pid' => Array (
326 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.content_from_pid',
327 'config' => Array (
328 'type' => 'group',
329 'internal_type' => 'db',
330 'allowed' => 'pages',
331 'size' => '1',
332 'maxitems' => '1',
333 'minitems' => '0',
334 'show_thumbs' => '1'
335 )
336 ),
337 'mount_pid' => Array (
338 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_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 'keywords' => Array (
350 'exclude' => 1,
351 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.keywords',
352 'config' => Array (
353 'type' => 'text',
354 'cols' => '40',
355 'rows' => '3'
356 )
357 ),
358 'description' => Array (
359 'exclude' => 1,
360 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
361 'config' => Array (
362 'type' => 'input',
363 'size' => '40',
364 'eval' => 'trim'
365 )
366 ),
367 'abstract' => Array (
368 'exclude' => 1,
369 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.abstract',
370 'config' => Array (
371 'type' => 'text',
372 'cols' => '40',
373 'rows' => '3'
374 )
375 ),
376 'author' => Array (
377 'exclude' => 1,
378 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.author',
379 'config' => Array (
380 'type' => 'input',
381 'size' => '20',
382 'eval' => 'trim',
383 'max' => '80'
384 )
385 ),
386 'author_email' => Array (
387 'exclude' => 1,
388 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
389 'config' => Array (
390 'type' => 'input',
391 'size' => '20',
392 'eval' => 'trim',
393 'max' => '80'
394 )
395 ),
396 'media' => Array (
397 'exclude' => 1,
398 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.media',
399 'config' => Array (
400 'type' => 'group',
401 'internal_type' => 'file',
402 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
403 'max_size' => '2000',
404 'uploadfolder' => 'uploads/media',
405 'show_thumbs' => '1',
406 'size' => '3',
407 'maxitems' => '5',
408 'minitems' => '0'
409 )
410 ),
411 'is_siteroot' => Array (
412 'exclude' => 1,
413 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.is_siteroot',
414 'config' => Array (
415 'type' => 'check'
416 )
417 ),
418 'mount_pid_ol' => Array (
419 'exclude' => 1,
420 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_pid_ol',
421 'config' => Array (
422 'type' => 'check'
423 )
424 ),
425 'module' => Array (
426 'exclude' => 1,
427 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.module',
428 'config' => Array (
429 'type' => 'select',
430 'items' => Array (
431 Array('', ''),
432 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.1', 'shop'),
433 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.2', 'board'),
434 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.3', 'news'),
435 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.4', 'fe_users'),
436 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.5', 'dmail'),
437 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.6', 'approve')
438 ),
439 'default' => ''
440 )
441 ),
442 'l18n_cfg' => Array (
443 'exclude' => 1,
444 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg',
445 'config' => Array (
446 'type' => 'check',
447 'items' => Array (
448 Array('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.1', ''),
449 Array('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.2', ''),
450 ),
451 )
452 ),
453 ));
454
455 // Add columns to info-display list.
456 $TCA['pages']['interface']['showRecordFieldList'].=',alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout';
457
458 // Setting main palette
459 $TCA['pages']['ctrl']['mainpalette']='1';
460
461 // Totally overriding all type-settings:
462 $TCA['pages']['types'] = Array (
463 '1' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
464 '2' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
465 '3' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, nav_hide, url;;;;3-3-3, urltype, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
466 '4' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, nav_hide, shortcut;;;;3-3-3, shortcut_mode, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
467 '5' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
468 '7' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, mount_pid;;;;3-3-3, mount_pid_ol, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
469 '199' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
470 '254' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title;;;2-2-2, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module'),
471 '255' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2')
472 );
473 // Merging palette settings:
474 // t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
475 $TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],Array(
476 '1' => Array('showitem' => 'starttime,endtime,fe_group,extendToSubpages'),
477 '2' => Array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
478 '3' => Array('showitem' => 'alias, target, no_cache, cache_timeout'),
479 '5' => Array('showitem' => 'author,author_email'),
480 ));
481
482
483
484
485
486
487 // ******************************************************************
488 // This is the standard TypoScript content table, tt_content
489 // ******************************************************************
490 $TCA['tt_content'] = Array (
491 'ctrl' => Array (
492 'label' => 'header',
493 'label_alt' => 'subheader,bodytext',
494 'sortby' => 'sorting',
495 'tstamp' => 'tstamp',
496 'title' => 'LLL:EXT:cms/locallang_tca.php:tt_content',
497 'delete' => 'deleted',
498 'versioning' => TRUE,
499 'versioning_followPages' => TRUE,
500 'type' => 'CType',
501 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
502 'copyAfterDuplFields' => 'colPos,sys_language_uid',
503 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
504 'transOrigPointerField' => 'l18n_parent',
505 'transOrigDiffSourceField' => 'l18n_diffsource',
506 'languageField' => 'sys_language_uid',
507 'enablecolumns' => Array (
508 'disabled' => 'hidden',
509 'starttime' => 'starttime',
510 'endtime' => 'endtime',
511 'fe_group' => 'fe_group',
512 ),
513 'typeicon_column' => 'CType',
514 'typeicons' => Array (
515 'header' => 'tt_content_header.gif',
516 'textpic' => 'tt_content_textpic.gif',
517 'image' => 'tt_content_image.gif',
518 'bullets' => 'tt_content_bullets.gif',
519 'table' => 'tt_content_table.gif',
520 'splash' => 'tt_content_news.gif',
521 'uploads' => 'tt_content_uploads.gif',
522 'multimedia' => 'tt_content_mm.gif',
523 'menu' => 'tt_content_menu.gif',
524 'list' => 'tt_content_list.gif',
525 'mailform' => 'tt_content_form.gif',
526 'search' => 'tt_content_search.gif',
527 'login' => 'tt_content_login.gif',
528 'shortcut' => 'tt_content_shortcut.gif',
529 'script' => 'tt_content_script.gif',
530 'div' => 'tt_content_div.gif',
531 'html' => 'tt_content_html.gif'
532 ),
533 'mainpalette' => '1',
534 'thumbnail' => 'image',
535 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php'
536 )
537 );
538
539 // ******************************************************************
540 // fe_users
541 // ******************************************************************
542 $TCA['fe_users'] = Array (
543 'ctrl' => Array (
544 'label' => 'username',
545 'tstamp' => 'tstamp',
546 'crdate' => 'crdate',
547 'cruser_id' => 'cruser_id',
548 'fe_cruser_id' => 'fe_cruser_id',
549 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_users',
550 'delete' => 'deleted',
551 'mainpalette' => '1',
552 'enablecolumns' => Array (
553 'disabled' => 'disable',
554 'starttime' => 'starttime',
555 'endtime' => 'endtime'
556 ),
557 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
558 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
559 ),
560 'feInterface' => Array (
561 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
562 )
563 );
564
565 // ******************************************************************
566 // fe_groups
567 // ******************************************************************
568 $TCA['fe_groups'] = Array (
569 'ctrl' => Array (
570 'label' => 'title',
571 'tstamp' => 'tstamp',
572 'delete' => 'deleted',
573 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
574 'enablecolumns' => Array (
575 'disabled' => 'hidden'
576 ),
577 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_groups',
578 'useColumnsForDefaultValues' => 'lockToDomain',
579 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
580 )
581 );
582
583 // ******************************************************************
584 // sys_domain
585 // ******************************************************************
586 $TCA['sys_domain'] = Array (
587 'ctrl' => Array (
588 'label' => 'domainName',
589 'tstamp' => 'tstamp',
590 'sortby' => 'sorting',
591 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_domain',
592 'iconfile' => 'domain.gif',
593 'enablecolumns' => Array (
594 'disabled' => 'hidden'
595 ),
596 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
597 )
598 );
599
600 // ******************************************************************
601 // pages_language_overlay
602 // ******************************************************************
603 $TCA['pages_language_overlay'] = Array (
604 'ctrl' => Array (
605 'label' => 'title',
606 'tstamp' => 'tstamp',
607 'title' => 'LLL:EXT:cms/locallang_tca.php:pages_language_overlay',
608 'versioning' => TRUE,
609 'versioning_followPages' => TRUE,
610 'crdate' => 'crdate',
611 'cruser_id' => 'cruser_id',
612 'enablecolumns' => Array (
613 'disabled' => 'hidden',
614 'starttime' => 'starttime',
615 'endtime' => 'endtime'
616 ),
617 'transOrigPointerField' => 'pid',
618 'transOrigPointerTable' => 'pages',
619 'transOrigDiffSourceField' => 'l18n_diffsource',
620 'languageField' => 'sys_language_uid',
621 'mainpalette' => 1,
622 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
623 )
624 );
625
626
627 // ******************************************************************
628 // sys_template
629 // ******************************************************************
630 $TCA['sys_template'] = Array (
631 'ctrl' => Array (
632 'label' => 'title',
633 'tstamp' => 'tstamp',
634 'sortby' => 'sorting',
635 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
636 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_template',
637 'versioning' => TRUE,
638 'crdate' => 'crdate',
639 'cruser_id' => 'cruser_id',
640 'delete' => 'deleted',
641 'adminOnly' => 1, // Only admin, if any
642 'iconfile' => 'template.gif',
643 'thumbnail' => 'resources',
644 'enablecolumns' => Array (
645 'disabled' => 'hidden',
646 'starttime' => 'starttime',
647 'endtime' => 'endtime'
648 ),
649 'typeicon_column' => 'root',
650 'typeicons' => Array (
651 '0' => 'template_add.gif'
652 ),
653 'mainpalette' => '1',
654 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
655 )
656 );
657
658 // ******************************************************************
659 // static_template
660 // ******************************************************************
661 $TCA['static_template'] = Array (
662 'ctrl' => Array (
663 'label' => 'title',
664 'tstamp' => 'tstamp',
665 'title' => 'LLL:EXT:cms/locallang_tca.php:static_template',
666 'readOnly' => 1, // This should always be true, as it prevents the static templates from being altered
667 'adminOnly' => 1, // Only admin, if any
668 'rootLevel' => 1,
669 'is_static' => 1,
670 'default_sortby' => 'ORDER BY title',
671 'crdate' => 'crdate',
672 'iconfile' => 'template_standard.gif',
673 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
674 )
675 );
676
677 ?>