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