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