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