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