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