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