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