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