Initial revision
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 if (TYPO3_MODE=='BE') {
5 t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/');
6 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.php');
7
8 t3lib_extMgm::insertModuleFunction(
9 'web_info',
10 'tx_cms_webinfo_page',
11 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php',
12 'LLL:EXT:cms/locallang_tca.php:mod_tx_cms_webinfo_page'
13 );
14 }
15
16
17 // ******************************************************************
18 // Extend 'pages'-table
19 // ******************************************************************
20
21 if (TYPO3_MODE=='BE') {
22 // Setting ICON_TYPES
23 $ICON_TYPES = Array(
24 'shop' => Array('icon' => 'modules_shop.gif'),
25 'board' => Array('icon' => 'modules_board.gif'),
26 'news' => Array('icon' => 'modules_news.gif'),
27 'dmail' => Array('icon' => 'modules_dmail.gif'),
28 'fe_users' => Array('icon' => 'modules_fe_users.gif'),
29 'approve' => Array('icon' => 'modules_approvals.gif')
30 );
31 }
32
33 // Adding pages_types:
34 // t3lib_div::array_merge() MUST be used!
35 $PAGES_TYPES = t3lib_div::array_merge(array(
36 '3' => Array(
37 'icon' => 'pages_link.gif'
38 ),
39 '4' => Array(
40 'icon' => 'pages_shortcut.gif'
41 ),
42 '5' => Array(
43 'icon' => 'pages_notinmenu.gif'
44 ),
45 '7' => Array(
46 'icon' => 'pages_mountpoint.gif'
47 ),
48 '6' => Array(
49 'type' => 'web',
50 'icon' => 'be_users_section.gif',
51 'allowedTables' => '*'
52 ),
53 '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
54 'type' => 'sys',
55 'icon' => 'spacer_icon.gif',
56 )
57 ),$PAGES_TYPES);
58
59 // Add allowed records to pages:
60 t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain');
61
62 // Merging in CMS doktypes:
63 array_splice(
64 $TCA['pages']['columns']['doktype']['config']['items'],
65 1,
66 0,
67 Array(
68 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.0', '2'),
69 Array('LLL:EXT:lang/locallang_general.php:LGL.external', '3'),
70 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.2', '4'),
71 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.3', '5'),
72 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.4', '6'),
73 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.5', '7'),
74 Array('-----', '--div--'),
75 Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.7', '199')
76 )
77 );
78
79 // Setting enablecolumns:
80 $TCA['pages']['ctrl']['enablecolumns'] = Array (
81 'disabled' => 'hidden',
82 'starttime' => 'starttime',
83 'endtime' => 'endtime',
84 'fe_group' => 'fe_group',
85 );
86
87 // Adding default value columns:
88 $TCA['pages']['ctrl']['useColumnsForDefaultValues'].=',fe_group,hidden';
89
90 // Adding new columns:
91 $TCA['pages']['columns'] = array_merge($TCA['pages']['columns'],Array(
92 'hidden' => Array (
93 'exclude' => 1,
94 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.hidden',
95 'config' => Array (
96 'type' => 'check',
97 'default' => '1'
98 )
99 ),
100 'starttime' => Array (
101 'exclude' => 1,
102 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
103 'config' => Array (
104 'type' => 'input',
105 'size' => '8',
106 'max' => '20',
107 'eval' => 'date',
108 'checkbox' => '0',
109 'default' => '0'
110 )
111 ),
112 'endtime' => Array (
113 'exclude' => 1,
114 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
115 'config' => Array (
116 'type' => 'input',
117 'size' => '8',
118 'max' => '20',
119 'eval' => 'date',
120 'checkbox' => '0',
121 'default' => '0',
122 'range' => Array (
123 'upper' => mktime(0,0,0,12,31,2020),
124 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
125 )
126 )
127 ),
128 'layout' => Array (
129 'exclude' => 1,
130 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.layout',
131 'config' => Array (
132 'type' => 'select',
133 'items' => Array (
134 Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
135 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.1', '1'),
136 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.2', '2'),
137 Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.3', '3')
138 ),
139 'default' => '0'
140 )
141 ),
142 'fe_group' => Array (
143 'exclude' => 1,
144 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
145 'config' => Array (
146 'type' => 'select',
147 'items' => Array (
148 Array('', 0),
149 Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
150 Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
151 Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
152 ),
153 'foreign_table' => 'fe_groups'
154 )
155 ),
156 'extendToSubpages' => Array (
157 'exclude' => 1,
158 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.extendToSubpages',
159 'config' => Array (
160 'type' => 'check'
161 )
162 ),
163 'nav_title' => Array (
164 'exclude' => 1,
165 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.nav_title',
166 'config' => Array (
167 'type' => 'input',
168 'size' => '30',
169 'max' => '256',
170 'checkbox' => '',
171 'eval' => 'trim'
172 )
173 ),
174 'subtitle' => Array (
175 'exclude' => 1,
176 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.subtitle',
177 'config' => Array (
178 'type' => 'input',
179 'size' => '30',
180 'max' => '256',
181 'eval' => ''
182 )
183 ),
184 'target' => Array (
185 'exclude' => 1,
186 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.target',
187 'config' => Array (
188 'type' => 'input',
189 'size' => '7',
190 'max' => '20',
191 'eval' => 'trim',
192 'checkbox' => ''
193 )
194 ),
195 'alias' => Array (
196 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.alias',
197 'config' => Array (
198 'type' => 'input',
199 'size' => '10',
200 'max' => '20',
201 'eval' => 'nospace,alphanum_x,lower,unique'
202 )
203 ),
204 'url' => Array (
205 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
206 'config' => Array (
207 'type' => 'input',
208 'size' => '25',
209 'max' => '256',
210 'eval' => 'trim'
211 )
212 ),
213 'urltype' => Array (
214 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
215 'config' => Array (
216 'type' => 'select',
217 'items' => Array (
218 Array('', '0'),
219 Array('http://', '1'),
220 Array('ftp://', '2'),
221 Array('mailto:', '3')
222 ),
223 'default' => '1'
224 )
225 ),
226 'lastUpdated' => Array (
227 'exclude' => 1,
228 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.lastUpdated',
229 'config' => Array (
230 'type' => 'input',
231 'size' => '12',
232 'max' => '20',
233 'eval' => 'datetime',
234 'checkbox' => '0',
235 'default' => '0'
236 )
237 ),
238 'newUntil' => Array (
239 'exclude' => 1,
240 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.newUntil',
241 'config' => Array (
242 'type' => 'input',
243 'size' => '8',
244 'max' => '20',
245 'eval' => 'date',
246 'checkbox' => '0',
247 'default' => '0'
248 )
249 ),
250 'cache_timeout' => Array (
251 'exclude' => 1,
252 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.cache_timeout',
253 'config' => Array (
254 'type' => 'select',
255 'items' => Array (
256 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0),
257 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.1', 60),
258 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.2', 5*60),
259 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.3', 15*60),
260 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.4', 30*60),
261 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.5', 60*60),
262 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.6', 4*60*60),
263 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.7', 24*60*60),
264 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.8', 2*24*60*60),
265 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.9', 7*24*60*60),
266 Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.10', 31*24*60*60)
267 ),
268 'default' => '0'
269 )
270 ),
271 'no_cache' => Array (
272 'exclude' => 1,
273 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_cache',
274 'config' => Array (
275 'type' => 'check'
276 )
277 ),
278 'no_search' => Array (
279 'exclude' => 1,
280 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_search',
281 'config' => Array (
282 'type' => 'check'
283 )
284 ),
285 'shortcut' => Array (
286 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.shortcut_page',
287 'config' => Array (
288 'type' => 'group',
289 'internal_type' => 'db',
290 'allowed' => 'pages',
291 'size' => '3',
292 'maxitems' => '1',
293 'minitems' => '0',
294 'show_thumbs' => '1'
295 )
296 ),
297 'shortcut_mode' => Array (
298 'exclude' => 1,
299 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode',
300 'config' => Array (
301 'type' => 'select',
302 'items' => Array (
303 Array('', 0),
304 Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.1', 1),
305 Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.2', 2),
306 ),
307 'default' => '0'
308 )
309 ),
310 'content_from_pid' => Array (
311 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.content_from_pid',
312 'config' => Array (
313 'type' => 'group',
314 'internal_type' => 'db',
315 'allowed' => 'pages',
316 'size' => '1',
317 'maxitems' => '1',
318 'minitems' => '0',
319 'show_thumbs' => '1'
320 )
321 ),
322 'mount_pid' => Array (
323 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_pid',
324 'config' => Array (
325 'type' => 'group',
326 'internal_type' => 'db',
327 'allowed' => 'pages',
328 'size' => '1',
329 'maxitems' => '1',
330 'minitems' => '0',
331 'show_thumbs' => '1'
332 )
333 ),
334 'keywords' => Array (
335 'exclude' => 1,
336 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.keywords',
337 'config' => Array (
338 'type' => 'text',
339 'cols' => '40',
340 'rows' => '3'
341 )
342 ),
343 'description' => Array (
344 'exclude' => 1,
345 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
346 'config' => Array (
347 'type' => 'input',
348 'size' => '40',
349 'eval' => 'trim'
350 )
351 ),
352 'abstract' => Array (
353 'exclude' => 1,
354 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.abstract',
355 'config' => Array (
356 'type' => 'text',
357 'cols' => '40',
358 'rows' => '3'
359 )
360 ),
361 'author' => Array (
362 'exclude' => 1,
363 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.author',
364 'config' => Array (
365 'type' => 'input',
366 'size' => '20',
367 'eval' => 'trim',
368 'max' => '80'
369 )
370 ),
371 'author_email' => Array (
372 'exclude' => 1,
373 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
374 'config' => Array (
375 'type' => 'input',
376 'size' => '20',
377 'eval' => 'trim',
378 'max' => '80'
379 )
380 ),
381 'media' => Array (
382 'exclude' => 1,
383 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.media',
384 'config' => Array (
385 'type' => 'group',
386 'internal_type' => 'file',
387 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
388 'max_size' => '2000',
389 'uploadfolder' => 'uploads/media',
390 'show_thumbs' => '1',
391 'size' => '3',
392 'maxitems' => '5',
393 'minitems' => '0'
394 )
395 ),
396 'is_siteroot' => Array (
397 'exclude' => 1,
398 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.is_siteroot',
399 'config' => Array (
400 'type' => 'check'
401 )
402 ),
403 'module' => Array (
404 'exclude' => 1,
405 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.module',
406 'config' => Array (
407 'type' => 'select',
408 'items' => Array (
409 Array('', ''),
410 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.1', 'shop'),
411 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.2', 'board'),
412 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.3', 'news'),
413 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.4', 'fe_users'),
414 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.5', 'dmail'),
415 Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.6', 'approve')
416 ),
417 'default' => ''
418 )
419 )
420 ));
421
422 // Add columns to info-display list.
423 $TCA['pages']['interface']['showRecordFieldList'].=',alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout';
424
425 // Setting main palette
426 $TCA['pages']['ctrl']['mainpalette']='1';
427
428 // Totally overriding all type-settings:
429 $TCA['pages']['types'] = Array (
430 '1' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
431 '2' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module, content_from_pid'),
432 '3' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, url;;4;;3-3-3, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
433 '4' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, shortcut;;6;;3-3-3, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
434 '5' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title, --div--, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module, content_from_pid'),
435 '7' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_title, --div--, mount_pid;;;;3-3-3, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module, content_from_pid'),
436 '199' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
437 '254' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title;;;2-2-2, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module'),
438 '255' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2, TSconfig;;6;nowrap;5-5-5, storage_pid;;7')
439 );
440 // Merging palette settings:
441 // t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
442 $TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],Array(
443 '1' => Array('showitem' => 'starttime,endtime,fe_group,extendToSubpages'),
444 '2' => Array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
445 '3' => Array('showitem' => 'alias, target, no_cache, cache_timeout'),
446 '4' => Array('showitem' => 'urltype'),
447 '5' => Array('showitem' => 'author,author_email'),
448 '6' => Array('showitem' => 'shortcut_mode')
449 ));
450
451
452
453
454
455
456 // ******************************************************************
457 // This is the standard TypoScript content table, tt_content
458 // ******************************************************************
459 $TCA['tt_content'] = Array (
460 'ctrl' => Array (
461 'label' => 'header',
462 'label_alt' => 'subheader,bodytext',
463 'sortby' => 'sorting',
464 'tstamp' => 'tstamp',
465 'title' => 'LLL:EXT:cms/locallang_tca.php:tt_content',
466 'delete' => 'deleted',
467 'type' => 'CType',
468 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
469 'copyAfterDuplFields' => 'colPos,sys_language_uid',
470 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
471 'enablecolumns' => Array (
472 'disabled' => 'hidden',
473 'starttime' => 'starttime',
474 'endtime' => 'endtime',
475 'fe_group' => 'fe_group',
476 ),
477 'typeicon_column' => 'CType',
478 'typeicons' => Array (
479 'header' => 'tt_content_header.gif',
480 'textpic' => 'tt_content_textpic.gif',
481 'image' => 'tt_content_image.gif',
482 'bullets' => 'tt_content_bullets.gif',
483 'table' => 'tt_content_table.gif',
484 'splash' => 'tt_content_news.gif',
485 'uploads' => 'tt_content_uploads.gif',
486 'multimedia' => 'tt_content_mm.gif',
487 'menu' => 'tt_content_menu.gif',
488 'list' => 'tt_content_list.gif',
489 'mailform' => 'tt_content_form.gif',
490 'search' => 'tt_content_search.gif',
491 'login' => 'tt_content_login.gif',
492 'shortcut' => 'tt_content_shortcut.gif',
493 'script' => 'tt_content_script.gif',
494 'div' => 'tt_content_div.gif',
495 'html' => 'tt_content_html.gif'
496 ),
497 'mainpalette' => '1',
498 'thumbnail' => 'image',
499 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php'
500 )
501 );
502
503 // ******************************************************************
504 // fe_users
505 // ******************************************************************
506 $TCA['fe_users'] = Array (
507 'ctrl' => Array (
508 'label' => 'username',
509 'tstamp' => 'tstamp',
510 'crdate' => 'crdate',
511 'cruser_id' => 'cruser_id',
512 'fe_cruser_id' => 'fe_cruser_id',
513 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_users',
514 'delete' => 'deleted',
515 'mainpalette' => '1',
516 'enablecolumns' => Array (
517 'disabled' => 'disable',
518 'starttime' => 'starttime',
519 'endtime' => 'endtime'
520 ),
521 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
522 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
523 ),
524 'feInterface' => Array (
525 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
526 )
527 );
528
529 // ******************************************************************
530 // fe_groups
531 // ******************************************************************
532 $TCA['fe_groups'] = Array (
533 'ctrl' => Array (
534 'label' => 'title',
535 'tstamp' => 'tstamp',
536 'delete' => 'deleted',
537 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
538 'enablecolumns' => Array (
539 'disabled' => 'hidden'
540 ),
541 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_groups',
542 'useColumnsForDefaultValues' => 'lockToDomain',
543 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
544 )
545 );
546
547 // ******************************************************************
548 // sys_domain
549 // ******************************************************************
550 $TCA['sys_domain'] = Array (
551 'ctrl' => Array (
552 'label' => 'domainName',
553 'tstamp' => 'tstamp',
554 'sortby' => 'sorting',
555 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_domain',
556 'iconfile' => 'domain.gif',
557 'enablecolumns' => Array (
558 'disabled' => 'hidden'
559 ),
560 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
561 )
562 );
563
564 // ******************************************************************
565 // pages_language_overlay
566 // ******************************************************************
567 $TCA['pages_language_overlay'] = Array (
568 'ctrl' => Array (
569 'label' => 'title',
570 'tstamp' => 'tstamp',
571 'title' => 'LLL:EXT:cms/locallang_tca.php:pages_language_overlay',
572 'crdate' => 'crdate',
573 'cruser_id' => 'cruser_id',
574 'enablecolumns' => Array (
575 'disabled' => 'hidden',
576 'starttime' => 'starttime',
577 'endtime' => 'endtime'
578 ),
579 'mainpalette' => 1,
580 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
581 )
582 );
583
584 // ******************************************************************
585 // sys_language
586 // ******************************************************************
587 $TCA['sys_language'] = Array (
588 'ctrl' => Array (
589 'label' => 'title',
590 'tstamp' => 'tstamp',
591 'default_sortby' => 'ORDER BY title',
592 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_language',
593 'adminOnly' => 1,
594 'rootLevel' => 1,
595 'enablecolumns' => Array (
596 'disabled' => 'hidden'
597 ),
598 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
599 )
600 );
601
602 // ******************************************************************
603 // sys_template
604 // ******************************************************************
605 $TCA['sys_template'] = Array (
606 'ctrl' => Array (
607 'label' => 'title',
608 'tstamp' => 'tstamp',
609 'sortby' => 'sorting',
610 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
611 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_template',
612 'crdate' => 'crdate',
613 'cruser_id' => 'cruser_id',
614 'delete' => 'deleted',
615 'adminOnly' => 1, // Only admin, if any
616 'iconfile' => 'template.gif',
617 'thumbnail' => 'resources',
618 'enablecolumns' => Array (
619 'disabled' => 'hidden',
620 'starttime' => 'starttime',
621 'endtime' => 'endtime'
622 ),
623 'typeicon_column' => 'root',
624 'typeicons' => Array (
625 '0' => 'template_add.gif'
626 ),
627 'mainpalette' => '1',
628 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
629 )
630 );
631
632 // ******************************************************************
633 // static_template
634 // ******************************************************************
635 $TCA['static_template'] = Array (
636 'ctrl' => Array (
637 'label' => 'title',
638 'tstamp' => 'tstamp',
639 'title' => 'LLL:EXT:cms/locallang_tca.php:static_template',
640 'readOnly' => 1, // This should always be true, as it prevents the static templates from being altered
641 'adminOnly' => 1, // Only admin, if any
642 'rootLevel' => 1,
643 'is_static' => 1,
644 'default_sortby' => 'ORDER BY title',
645 'crdate' => 'crdate',
646 'iconfile' => 'template_standard.gif',
647 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
648 )
649 );
650
651 ?>