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