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