Changed position of not-in-menu checkbox so it's directly under the doktype selector
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 # TYPO3 CVS ID: $Id$
3 if (!defined ('TYPO3_MODE')) die ('Access denied.');
4
5 if (TYPO3_MODE=='BE') {
6 t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/');
7 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.xml');
8 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:cms/locallang_csh_webinfo.xml');
9
10 t3lib_extMgm::insertModuleFunction(
11 'web_info',
12 'tx_cms_webinfo_page',
13 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php',
14 'LLL:EXT:cms/locallang_tca.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 'hidden;;;;1-1-1, doktype;;2;button, 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 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title, nav_hide,
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.access,
515 starttime, endtime, fe_group, extendToSubpages,
516 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
517 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
518 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
519 '),
520 // shortcut
521 '4' => array('showitem' =>
522 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, subtitle, nav_hide,
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.access,
526 starttime, endtime, fe_group, extendToSubpages,
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.extended,
530 '),
531 // not in menu
532 '5' => array('showitem' =>
533 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title,
534 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
535 media,
536 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
537 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
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.extended,
541 '),
542 // mount page
543 '7' => array('showitem' =>
544 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title, nav_hide,
545 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.mount,
546 mount_pid;;;;3-3-3, mount_pid_ol,
547 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
548 media,
549 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
550 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
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.extended,
554 '),
555 // spacer
556 '199' => array('showitem' =>
557 'hidden;;;;1-1-1, doktype, title,
558 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
559 TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
560 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
561 '),
562 // sysfolder
563 '254' => array('showitem' =>
564 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.xml:LGL.title,
565 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
566 TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module,
567 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
568 '),
569 // trash
570 '255' => array('showitem' =>
571 'hidden;;;;1-1-1, doktype, title,
572 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
573 ')
574 );
575
576 // Merging palette settings:
577 // t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
578 $TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],array(
579 '1' => array('showitem' => 'starttime, endtime, extendToSubpages'),
580 '2' => array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
581 '3' => array('showitem' => 'alias, target, no_cache, cache_timeout'),
582 '5' => array('showitem' => 'author, author_email'),
583 ));
584
585
586
587
588 // ******************************************************************
589 // This is the standard TypoScript content table, tt_content
590 // ******************************************************************
591 $TCA['tt_content'] = array (
592 'ctrl' => array (
593 'label' => 'header',
594 'label_alt' => 'subheader,bodytext',
595 'sortby' => 'sorting',
596 'tstamp' => 'tstamp',
597 'crdate' => 'crdate',
598 'cruser_id' => 'cruser_id',
599 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content',
600 'delete' => 'deleted',
601 'versioningWS' => 2,
602 'versioning_followPages' => true,
603 'origUid' => 't3_origuid',
604 'type' => 'CType',
605 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
606 'copyAfterDuplFields' => 'colPos,sys_language_uid',
607 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
608 'shadowColumnsForNewPlaceholders' => 'colPos',
609 'transOrigPointerField' => 'l18n_parent',
610 'transOrigDiffSourceField' => 'l18n_diffsource',
611 'languageField' => 'sys_language_uid',
612 'enablecolumns' => array (
613 'disabled' => 'hidden',
614 'starttime' => 'starttime',
615 'endtime' => 'endtime',
616 'fe_group' => 'fe_group',
617 ),
618 'typeicon_column' => 'CType',
619 'typeicons' => array (
620 'header' => 'tt_content_header.gif',
621 'textpic' => 'tt_content_textpic.gif',
622 'image' => 'tt_content_image.gif',
623 'bullets' => 'tt_content_bullets.gif',
624 'table' => 'tt_content_table.gif',
625 'splash' => 'tt_content_news.gif',
626 'uploads' => 'tt_content_uploads.gif',
627 'multimedia' => 'tt_content_mm.gif',
628 'menu' => 'tt_content_menu.gif',
629 'list' => 'tt_content_list.gif',
630 'mailform' => 'tt_content_form.gif',
631 'search' => 'tt_content_search.gif',
632 'login' => 'tt_content_login.gif',
633 'shortcut' => 'tt_content_shortcut.gif',
634 'script' => 'tt_content_script.gif',
635 'div' => 'tt_content_div.gif',
636 'html' => 'tt_content_html.gif'
637 ),
638 'mainpalette' => '1,15',
639 'thumbnail' => 'image',
640 'requestUpdate' => 'list_type',
641 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php'
642 )
643 );
644
645 // ******************************************************************
646 // fe_users
647 // ******************************************************************
648 $TCA['fe_users'] = array (
649 'ctrl' => array (
650 'label' => 'username',
651 'tstamp' => 'tstamp',
652 'crdate' => 'crdate',
653 'cruser_id' => 'cruser_id',
654 'fe_cruser_id' => 'fe_cruser_id',
655 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users',
656 'delete' => 'deleted',
657 'mainpalette' => '1',
658 'enablecolumns' => array (
659 'disabled' => 'disable',
660 'starttime' => 'starttime',
661 'endtime' => 'endtime'
662 ),
663 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
664 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
665 ),
666 'feInterface' => array (
667 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
668 )
669 );
670
671 // ******************************************************************
672 // fe_groups
673 // ******************************************************************
674 $TCA['fe_groups'] = array (
675 'ctrl' => array (
676 'label' => 'title',
677 'tstamp' => 'tstamp',
678 'delete' => 'deleted',
679 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
680 'enablecolumns' => array (
681 'disabled' => 'hidden'
682 ),
683 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups',
684 'useColumnsForDefaultValues' => 'lockToDomain',
685 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
686 )
687 );
688
689 // ******************************************************************
690 // sys_domain
691 // ******************************************************************
692 $TCA['sys_domain'] = array (
693 'ctrl' => array (
694 'label' => 'domainName',
695 'tstamp' => 'tstamp',
696 'sortby' => 'sorting',
697 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain',
698 'iconfile' => 'domain.gif',
699 'enablecolumns' => array (
700 'disabled' => 'hidden'
701 ),
702 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
703 )
704 );
705
706 // ******************************************************************
707 // pages_language_overlay
708 // ******************************************************************
709 $TCA['pages_language_overlay'] = array (
710 'ctrl' => array (
711 'label' => 'title',
712 'tstamp' => 'tstamp',
713 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay',
714 'versioningWS' => true,
715 'versioning_followPages' => true,
716 'origUid' => 't3_origuid',
717 'crdate' => 'crdate',
718 'cruser_id' => 'cruser_id',
719 'delete' => 'deleted',
720 'enablecolumns' => array (
721 'disabled' => 'hidden',
722 'starttime' => 'starttime',
723 'endtime' => 'endtime'
724 ),
725 'transOrigPointerField' => 'pid',
726 'transOrigPointerTable' => 'pages',
727 'transOrigDiffSourceField' => 'l18n_diffsource',
728 'shadowColumnsForNewPlaceholders' => 'title',
729 'languageField' => 'sys_language_uid',
730 'mainpalette' => 1,
731 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
732 )
733 );
734
735
736 // ******************************************************************
737 // sys_template
738 // ******************************************************************
739 $TCA['sys_template'] = array (
740 'ctrl' => array (
741 'label' => 'title',
742 'tstamp' => 'tstamp',
743 'sortby' => 'sorting',
744 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy',
745 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template',
746 'versioningWS' => true,
747 'origUid' => 't3_origuid',
748 'crdate' => 'crdate',
749 'cruser_id' => 'cruser_id',
750 'delete' => 'deleted',
751 'adminOnly' => 1, // Only admin, if any
752 'iconfile' => 'template.gif',
753 'thumbnail' => 'resources',
754 'enablecolumns' => array (
755 'disabled' => 'hidden',
756 'starttime' => 'starttime',
757 'endtime' => 'endtime'
758 ),
759 'typeicon_column' => 'root',
760 'typeicons' => array (
761 '0' => 'template_add.gif'
762 ),
763 'mainpalette' => '1',
764 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
765 )
766 );
767
768 // ******************************************************************
769 // static_template
770 // ******************************************************************
771 $TCA['static_template'] = array (
772 'ctrl' => array (
773 'label' => 'title',
774 'tstamp' => 'tstamp',
775 'title' => 'LLL:EXT:cms/locallang_tca.xml:static_template',
776 'readOnly' => 1, // This should always be true, as it prevents the static templates from being altered
777 'adminOnly' => 1, // Only admin, if any
778 'rootLevel' => 1,
779 'is_static' => 1,
780 'default_sortby' => 'ORDER BY title',
781 'crdate' => 'crdate',
782 'iconfile' => 'template_standard.gif',
783 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
784 )
785 );
786
787 ?>