Fixed bug #6131: Bug: 'Last login' for FE and BE users not shown in BE
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Dynamic configuation of the system-related tables, typ. sys_* series
29 *
30 * $Id$
31 *
32 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
33 */
34
35
36
37
38
39 // ******************************************************************
40 // fe_users
41 //
42 // FrontEnd users - login on the website
43 // ******************************************************************
44 $TCA['fe_users'] = array(
45 'ctrl' => $TCA['fe_users']['ctrl'],
46 'interface' => array(
47 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
48 ),
49 'feInterface' => $TCA['fe_users']['feInterface'],
50 'columns' => array(
51 'username' => array(
52 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.username',
53 'config' => array(
54 'type' => 'input',
55 'size' => '20',
56 'max' => '50',
57 'eval' => 'nospace,lower,uniqueInPid,required'
58 )
59 ),
60 'password' => array(
61 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.password',
62 'config' => array(
63 'type' => 'input',
64 'size' => '10',
65 'max' => '40',
66 'eval' => 'nospace,required,password'
67 )
68 ),
69 'usergroup' => array(
70 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.usergroup',
71 'config' => array(
72 'type' => 'select',
73 'foreign_table' => 'fe_groups',
74 'size' => '6',
75 'minitems' => '1',
76 'maxitems' => '50'
77 )
78 ),
79 'lockToDomain' => array(
80 'exclude' => 1,
81 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.lockToDomain',
82 'config' => array(
83 'type' => 'input',
84 'size' => '20',
85 'eval' => 'trim',
86 'max' => '50',
87 'checkbox' => '',
88 'softref' => 'substitute'
89 )
90 ),
91 'name' => array(
92 'exclude' => 1,
93 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
94 'config' => array(
95 'type' => 'input',
96 'size' => '40',
97 'eval' => 'trim',
98 'max' => '80'
99 )
100 ),
101 'address' => array(
102 'exclude' => 1,
103 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
104 'config' => array(
105 'type' => 'text',
106 'cols' => '20',
107 'rows' => '3'
108 )
109 ),
110 'telephone' => array(
111 'exclude' => 1,
112 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
113 'config' => array(
114 'type' => 'input',
115 'eval' => 'trim',
116 'size' => '20',
117 'max' => '20'
118 )
119 ),
120 'fax' => array(
121 'exclude' => 1,
122 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
123 'config' => array(
124 'type' => 'input',
125 'size' => '20',
126 'eval' => 'trim',
127 'max' => '20'
128 )
129 ),
130 'email' => array(
131 'exclude' => 1,
132 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
133 'config' => array(
134 'type' => 'input',
135 'size' => '20',
136 'eval' => 'trim',
137 'max' => '80'
138 )
139 ),
140 'title' => array(
141 'exclude' => 1,
142 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
143 'config' => array(
144 'type' => 'input',
145 'size' => '20',
146 'eval' => 'trim',
147 'max' => '40'
148 )
149 ),
150 'zip' => array(
151 'exclude' => 1,
152 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
153 'config' => array(
154 'type' => 'input',
155 'eval' => 'trim',
156 'size' => '10',
157 'max' => '10'
158 )
159 ),
160 'city' => array(
161 'exclude' => 1,
162 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
163 'config' => array(
164 'type' => 'input',
165 'size' => '20',
166 'eval' => 'trim',
167 'max' => '50'
168 )
169 ),
170 'country' => array(
171 'exclude' => 1,
172 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
173 'config' => array(
174 'type' => 'input',
175 'size' => '20',
176 'eval' => 'trim',
177 'max' => '40'
178 )
179 ),
180 'www' => array(
181 'exclude' => 1,
182 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
183 'config' => array(
184 'type' => 'input',
185 'eval' => 'trim',
186 'size' => '20',
187 'max' => '80'
188 )
189 ),
190 'company' => array(
191 'exclude' => 1,
192 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
193 'config' => array(
194 'type' => 'input',
195 'eval' => 'trim',
196 'size' => '20',
197 'max' => '80'
198 )
199 ),
200 'image' => array(
201 'exclude' => 1,
202 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
203 'config' => array(
204 'type' => 'group',
205 'internal_type' => 'file',
206 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
207 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
208 'uploadfolder' => 'uploads/pics',
209 'show_thumbs' => '1',
210 'size' => '3',
211 'maxitems' => '6',
212 'minitems' => '0'
213 )
214 ),
215 'disable' => array(
216 'exclude' => 1,
217 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
218 'config' => array(
219 'type' => 'check'
220 )
221 ),
222 'starttime' => array(
223 'exclude' => 1,
224 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
225 'config' => array(
226 'type' => 'input',
227 'size' => '8',
228 'max' => '20',
229 'eval' => 'date',
230 'default' => '0',
231 'checkbox' => '0'
232 )
233 ),
234 'endtime' => array(
235 'exclude' => 1,
236 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
237 'config' => array(
238 'type' => 'input',
239 'size' => '8',
240 'max' => '20',
241 'eval' => 'date',
242 'checkbox' => '0',
243 'default' => '0',
244 'range' => array(
245 'upper' => mktime(0,0,0,12,31,2020),
246 )
247 )
248 ),
249 'TSconfig' => array(
250 'exclude' => 1,
251 'label' => 'TSconfig:',
252 'config' => array(
253 'type' => 'text',
254 'cols' => '40',
255 'rows' => '10',
256 'wizards' => array(
257 '_PADDING' => 4,
258 '0' => array(
259 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
260 'title' => 'TSconfig QuickReference',
261 'script' => 'wizard_tsconfig.php?mode=fe_users',
262 'icon' => 'wizard_tsconfig.gif',
263 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
264 )
265 ),
266 'softref' => 'TSconfig'
267 ),
268 'defaultExtras' => 'fixed-font : enable-tab',
269 ),
270 'lastlogin' => array(
271 'exclude' => 1,
272 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
273 'config' => array(
274 'type' => 'input',
275 'readOnly' => '1',
276 'size' => '8',
277 'eval' => 'date'
278 )
279 )
280 ),
281 'types' => array(
282 '0' => array('showitem' => '
283 disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
284 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, name;;1;;1-1-1, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
285 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
286 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
287 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
288
289 ')
290 ),
291 'palettes' => array(
292 '1' => array('showitem' => 'title,company')
293 )
294 );
295
296
297
298
299
300 // ******************************************************************
301 // fe_groups
302 //
303 // FrontEnd usergroups - Membership of these determines access to elements
304 // ******************************************************************
305 $TCA['fe_groups'] = array(
306 'ctrl' => $TCA['fe_groups']['ctrl'],
307 'interface' => array(
308 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
309 ),
310 'columns' => array(
311 'hidden' => array(
312 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
313 'exclude' => 1,
314 'config' => array(
315 'type' => 'check',
316 'default' => '0'
317 )
318 ),
319 'title' => array(
320 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
321 'config' => array(
322 'type' => 'input',
323 'size' => '20',
324 'max' => '50',
325 'eval' => 'trim,required'
326 )
327 ),
328 'subgroup' => array(
329 'exclude' => 1,
330 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
331 'config' => array(
332 'type' => 'select',
333 'foreign_table' => 'fe_groups',
334 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
335 'size' => 6,
336 'autoSizeMax' => 10,
337 'minitems' => 0,
338 'maxitems' => 20
339 )
340 ),
341 'lockToDomain' => array(
342 'exclude' => 1,
343 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
344 'config' => array(
345 'type' => 'input',
346 'size' => '20',
347 'eval' => 'trim',
348 'max' => '50',
349 'checkbox' => ''
350 )
351 ),
352 'description' => array(
353 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
354 'config' => array(
355 'type' => 'text',
356 'rows' => 5,
357 'cols' => 48
358 )
359 ),
360 'TSconfig' => array(
361 'exclude' => 1,
362 'label' => 'TSconfig:',
363 'config' => array(
364 'type' => 'text',
365 'cols' => '40',
366 'rows' => '10',
367 'wizards' => array(
368 '_PADDING' => 4,
369 '0' => array(
370 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
371 'title' => 'TSconfig QuickReference',
372 'script' => 'wizard_tsconfig.php?mode=fe_users',
373 'icon' => 'wizard_tsconfig.gif',
374 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
375 )
376 ),
377 'softref' => 'TSconfig'
378 ),
379 'defaultExtras' => 'fixed-font : enable-tab',
380 )
381 ),
382 'types' => array(
383 '0' => array('showitem' => '
384 hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
385 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
386 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
387 ')
388 )
389 );
390
391
392
393
394 // ******************************************************************
395 // sys_domain
396 // ******************************************************************
397 $TCA['sys_domain'] = array(
398 'ctrl' => $TCA['sys_domain']['ctrl'],
399 'interface' => array(
400 'showRecordFieldList' => 'hidden,domainName,redirectTo'
401 ),
402 'columns' => array(
403 'domainName' => array(
404 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
405 'config' => array(
406 'type' => 'input',
407 'size' => '35',
408 'max' => '80',
409 'eval' => 'required,unique,lower,trim',
410 'softref' => 'substitute'
411 ),
412 ),
413 'redirectTo' => array(
414 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
415 'config' => array(
416 'type' => 'input',
417 'size' => '35',
418 'max' => '120',
419 'checkbox' => '',
420 'default' => '',
421 'eval' => 'trim',
422 'softref' => 'substitute'
423 ),
424 ),
425 'redirectHttpStatusCode' => array(
426 'exclude' => 1,
427 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode',
428 'config' => array(
429 'type' => 'select',
430 'items' => array(
431 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.301', '301'),
432 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.302', '302'),
433 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.303', '303'),
434 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.307', '307'),
435 ),
436 'size' => 1,
437 'maxitems' => 1,
438 ),
439 ),
440 'hidden' => array(
441 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
442 'exclude' => 1,
443 'config' => array(
444 'type' => 'check',
445 'default' => '0'
446 )
447 ),
448 'prepend_params' => array(
449 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
450 'exclude' => 1,
451 'config' => array(
452 'type' => 'check',
453 'default' => '0'
454 )
455 )
456 ),
457 'types' => array(
458 '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
459 ),
460 'palettes' => array(
461 '1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')
462 )
463 );
464
465
466
467
468
469 // ******************************************************************
470 // pages_language_overlay
471 // ******************************************************************
472 $TCA['pages_language_overlay'] = array(
473 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
474 'interface' => array(
475 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
476 ),
477 'columns' => array(
478 'hidden' => array(
479 'exclude' => 1,
480 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
481 'config' => array(
482 'type' => 'check',
483 'default' => '0'
484 )
485 ),
486 'starttime' => array(
487 'exclude' => 1,
488 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
489 'config' => array(
490 'type' => 'input',
491 'size' => '8',
492 'max' => '20',
493 'eval' => 'date',
494 'checkbox' => '0',
495 'default' => '0'
496 )
497 ),
498 'endtime' => array(
499 'exclude' => 1,
500 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
501 'config' => array(
502 'type' => 'input',
503 'size' => '8',
504 'max' => '20',
505 'eval' => 'date',
506 'checkbox' => '0',
507 'default' => '0',
508 'range' => array(
509 'upper' => mktime(0,0,0,12,31,2020),
510 )
511 )
512 ),
513 'title' => array(
514 'l10n_mode' => 'prefixLangTitle',
515 'label' => $TCA['pages']['columns']['title']['label'],
516 'l10n_cat' => 'text',
517 'config' => array(
518 'type' => 'input',
519 'size' => '30',
520 'max' => '256',
521 'eval' => 'required'
522 )
523 ),
524 'subtitle' => array(
525 'exclude' => 1,
526 'l10n_cat' => 'text',
527 'label' => $TCA['pages']['columns']['subtitle']['label'],
528 'config' => array(
529 'type' => 'input',
530 'size' => '30',
531 'max' => '256',
532 'eval' => ''
533 )
534 ),
535 'nav_title' => array(
536 'exclude' => 1,
537 'l10n_cat' => 'text',
538 'label' => $TCA['pages']['columns']['nav_title']['label'],
539 'config' => array(
540 'type' => 'input',
541 'size' => '30',
542 'max' => '256',
543 'checkbox' => '',
544 'eval' => 'trim'
545 )
546 ),
547 'keywords' => array(
548 'exclude' => 1,
549 'label' => $TCA['pages']['columns']['keywords']['label'],
550 'config' => array(
551 'type' => 'text',
552 'cols' => '40',
553 'rows' => '3'
554 )
555 ),
556 'description' => array(
557 'exclude' => 1,
558 'label' => $TCA['pages']['columns']['description']['label'],
559 'config' => array(
560 'type' => 'input',
561 'size' => '40',
562 'eval' => 'trim'
563 )
564 ),
565 'abstract' => array(
566 'exclude' => 1,
567 'label' => $TCA['pages']['columns']['abstract']['label'],
568 'config' => array(
569 'type' => 'text',
570 'cols' => '40',
571 'rows' => '3'
572 )
573 ),
574 'author' => array(
575 'exclude' => 1,
576 'label' => $TCA['pages']['columns']['author']['label'],
577 'config' => array(
578 'type' => 'input',
579 'size' => '20',
580 'eval' => 'trim',
581 'max' => '80'
582 )
583 ),
584 'author_email' => array(
585 'exclude' => 1,
586 'label' => $TCA['pages']['columns']['author_email']['label'],
587 'config' => array(
588 'type' => 'input',
589 'size' => '20',
590 'eval' => 'trim',
591 'max' => '80'
592 )
593 ),
594 'media' => array(
595 'exclude' => 1,
596 'label' => $TCA['pages']['columns']['media']['label'],
597 'config' => array(
598 'type' => 'group',
599 'internal_type' => 'file',
600 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
601 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
602 'uploadfolder' => 'uploads/media',
603 'show_thumbs' => '1',
604 'size' => '3',
605 'maxitems' => '5',
606 'minitems' => '0'
607 )
608 ),
609 'sys_language_uid' => array(
610 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
611 'config' => array(
612 'type' => 'select',
613 'foreign_table' => 'sys_language',
614 'foreign_table_where' => 'ORDER BY sys_language.title',
615 'items' => array(
616 array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
617 )
618 )
619 ),
620 'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
621 'l18n_diffsource' => array('config'=>array('type'=>'passthrough')),
622 't3ver_label' => array(
623 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
624 'config' => array(
625 'type' => 'input',
626 'size' => '30',
627 'max' => '30',
628 )
629 ),
630 ),
631 'types' => array(
632 '0' => array('showitem' => 'hidden;;;;1-1-1, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4')
633 ),
634 'palettes' => array(
635 '1' => array('showitem' => 'starttime,endtime'),
636 '5' => array('showitem' => 'author,author_email')
637 )
638 );
639
640
641
642 // ******************************************************************
643 // sys_template
644 // ******************************************************************
645 $TCA['sys_template'] = array(
646 'ctrl' => $TCA['sys_template']['ctrl'],
647 'interface' => array(
648 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
649 ),
650 'columns' => array(
651 'title' => array(
652 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
653 'config' => array(
654 'type' => 'input',
655 'size' => '25',
656 'max' => '256',
657 'eval' => 'required'
658 )
659 ),
660 'hidden' => array(
661 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
662 'exclude' => 1,
663 'config' => array(
664 'type' => 'check',
665 'default' => '0'
666 )
667 ),
668 'starttime' => array(
669 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
670 'exclude' => 1,
671 'config' => array(
672 'type' => 'input',
673 'size' => '8',
674 'max' => '20',
675 'eval' => 'date',
676 'checkbox' => '0',
677 'default' => '0'
678 )
679 ),
680 'endtime' => array(
681 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
682 'exclude' => 1,
683 'config' => array(
684 'type' => 'input',
685 'size' => '8',
686 'max' => '20',
687 'eval' => 'date',
688 'checkbox' => '0',
689 'default' => '0',
690 'range' => array(
691 'upper' => mktime(0,0,0,12,31,2020),
692 )
693 )
694 ),
695 'root' => array(
696 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
697 'config' => array(
698 'type' => 'check'
699 )
700 ),
701 'clear' => array(
702 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
703 'config' => array(
704 'type' => 'check',
705 'items' => array(
706 array('Constants', ''),
707 array('Setup', '')
708 ),
709 'cols' => 2
710 )
711 ),
712 'sitetitle' => array(
713 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
714 'config' => array(
715 'type' => 'input',
716 'size' => '25',
717 'max' => '256'
718 )
719 ),
720 'constants' => array(
721 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
722 'config' => array(
723 'type' => 'text',
724 'cols' => '48',
725 'rows' => '10',
726 'wrap' => 'OFF',
727 'softref' => 'TStemplate,email[subst],url[subst]'
728 ),
729 'defaultExtras' => 'fixed-font : enable-tab',
730 ),
731 'resources' => array(
732 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
733 'config' => array(
734 'type' => 'group',
735 'internal_type' => 'file',
736 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
737 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
738 'uploadfolder' => 'uploads/tf',
739 'show_thumbs' => '1',
740 'size' => '7',
741 'maxitems' => '100',
742 'minitems' => '0'
743 )
744 ),
745 'nextLevel' => array(
746 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
747 'config' => array(
748 'type' => 'group',
749 'internal_type' => 'db',
750 'allowed' => 'sys_template',
751 'show_thumbs' => '1',
752 'size' => '1',
753 'maxitems' => '1',
754 'minitems' => '0',
755 'default' => ''
756 )
757 ),
758 'include_static' => array(
759 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static',
760 'config' => array(
761 'type' => 'select',
762 'foreign_table' => 'static_template',
763 'foreign_table_where' => 'ORDER BY static_template.title DESC',
764 'size' => 10,
765 'maxitems' => 20,
766 'default' => '',
767 ),
768 ),
769 'include_static_file' => array(
770 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
771 'config' => array(
772 'type' => 'select',
773 'size' => 10,
774 'maxitems' => 100,
775 'items' => array(
776 ),
777 'softref' => 'ext_fileref'
778 )
779 ),
780 'basedOn' => array(
781 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
782 'config' => array(
783 'type' => 'group',
784 'internal_type' => 'db',
785 'allowed' => 'sys_template',
786 'show_thumbs' => '1',
787 'size' => '3',
788 'maxitems' => '50',
789 'autoSizeMax' => 10,
790 'minitems' => '0',
791 'default' => '',
792 'wizards' => array(
793 '_PADDING' => 4,
794 '_VERTICAL' => 1,
795 'edit' => array(
796 'type' => 'popup',
797 'title' => 'Edit template',
798 'script' => 'wizard_edit.php',
799 'popup_onlyOpenIfSelected' => 1,
800 'icon' => 'edit2.gif',
801 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
802 ),
803 'add' => array(
804 'type' => 'script',
805 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
806 'icon' => 'add.gif',
807 'params' => array(
808 'table'=>'sys_template',
809 'pid' => '###CURRENT_PID###',
810 'setValue' => 'prepend'
811 ),
812 'script' => 'wizard_add.php',
813 )
814 )
815 )
816 ),
817 'includeStaticAfterBasedOn' => array(
818 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
819 'exclude' => 1,
820 'config' => array(
821 'type' => 'check',
822 'default' => '0'
823 )
824 ),
825 'config' => array(
826 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
827 'config' => array(
828 'type' => 'text',
829 'rows' => 10,
830 'cols' => 48,
831 'wizards' => array(
832 '_PADDING' => 4,
833 '0' => array(
834 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
835 'title' => 'TSref online',
836 'script' => 'wizard_tsconfig.php?mode=tsref',
837 'icon' => 'wizard_tsconfig.gif',
838 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
839 )
840 ),
841 'wrap' => 'OFF',
842 'softref' => 'TStemplate,email[subst],url[subst]'
843 ),
844 'defaultExtras' => 'fixed-font : enable-tab',
845 ),
846 'editorcfg' => array(
847 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
848 'config' => array(
849 'type' => 'text',
850 'rows' => 8,
851 'cols' => 48,
852 'wrap' => 'OFF'
853 ),
854 'defaultExtras' => 'fixed-font : enable-tab',
855 ),
856 'description' => array(
857 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
858 'config' => array(
859 'type' => 'text',
860 'rows' => 5,
861 'cols' => 48
862 )
863 ),
864 'static_file_mode' => array(
865 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
866 'config' => array(
867 'type' => 'select',
868 'items' => array(
869 array('Default (Include before if Root-flag is set)', '0'),
870 array('Always include before this template record', '1'),
871 array('Never include before this template record', '2'),
872 ),
873 'default' => '0'
874 )
875 ),
876 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
877 't3ver_label' => array(
878 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
879 'config' => array(
880 'type' => 'input',
881 'size' => '30',
882 'max' => '30',
883 )
884 ),
885 ),
886 'types' => array(
887 '1' => array('showitem' => '
888 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
889 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
890 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, include_static,includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
891 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
892 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
893 )
894 )
895 );
896
897
898
899
900
901 // ******************************************************************
902 // static_template
903 // ******************************************************************
904 $TCA['static_template'] = array(
905 'ctrl' => $TCA['static_template']['ctrl'],
906 'interface' => array(
907 'showRecordFieldList' => 'title,include_static,description'
908 ),
909 'columns' => array(
910 'title' => array(
911 'label' => 'Template title:',
912 'config' => array(
913 'type' => 'input',
914 'size' => '25',
915 'max' => '256',
916 'eval' => 'required'
917 )
918 ),
919 'constants' => array(
920 'label' => 'Constants:',
921 'config' => array(
922 'type' => 'text',
923 'cols' => '48',
924 'rows' => '10',
925 'wrap' => 'OFF'
926 ),
927 'defaultExtras' => 'fixed-font : enable-tab',
928 ),
929 'include_static' => array(
930 'label' => 'Include static:',
931 'config' => array(
932 'type' => 'select',
933 'foreign_table' => 'static_template',
934 'foreign_table_where' => 'ORDER BY static_template.title',
935 'size' => 10,
936 'maxitems' => 20,
937 'default' => ''
938 )
939 ),
940 'config' => array(
941 'label' => 'Setup:',
942 'config' => array(
943 'type' => 'text',
944 'rows' => 10,
945 'cols' => 48,
946 'wrap' => 'OFF'
947 ),
948 'defaultExtras' => 'fixed-font : enable-tab',
949 ),
950 'editorcfg' => array(
951 'label' => 'Backend Editor Configuration:',
952 'config' => array(
953 'type' => 'text',
954 'rows' => 4,
955 'cols' => 48,
956 'wrap' => 'OFF'
957 ),
958 'defaultExtras' => 'fixed-font : enable-tab',
959 ),
960 'description' => array(
961 'label' => 'Description:',
962 'config' => array(
963 'type' => 'text',
964 'rows' => 10,
965 'cols' => 48
966 )
967 )
968 ),
969 'types' => array(
970 '1' => array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
971 )
972 );
973
974
975
976 ?>