[BUGFIX] Adapt EXT: beuser filter style to page module
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / tca.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $TCA['tx_rtehtmlarea_acronym'] = array(
6 'ctrl' => $TCA['tx_rtehtmlarea_acronym']['ctrl'],
7 'interface' => array(
8 'showRecordFieldList' => 'hidden,sys_language_uid,term,acronym'
9 ),
10 'columns' => array(
11 'hidden' => array(
12 'exclude' => 0,
13 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
14 'config' => array(
15 'type' => 'check',
16 'default' => '0'
17 )
18 ),
19 'starttime' => array(
20 'exclude' => 0,
21 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
22 'config' => array(
23 'type' => 'input',
24 'size' => '8',
25 'max' => '20',
26 'eval' => 'date',
27 'default' => '0',
28 'checkbox' => '0'
29 )
30 ),
31 'endtime' => array(
32 'exclude' => 0,
33 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
34 'config' => array(
35 'type' => 'input',
36 'size' => '8',
37 'max' => '20',
38 'eval' => 'date',
39 'checkbox' => '0',
40 'default' => '0',
41 'range' => array(
42 'upper' => mktime(0, 0, 0, 12, 31, 2020),
43 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
44 )
45 )
46 ),
47 'sys_language_uid' => array(
48 'exclude' => 0,
49 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
50 'config' => array(
51 'type' => 'select',
52 'foreign_table' => 'sys_language',
53 'foreign_table_where' => 'ORDER BY sys_language.title',
54 'items' => array(
55 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', '-1'),
56 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', '0')
57 )
58 )
59 ),
60 'type' => array(
61 'exclude' => 1,
62 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type',
63 'config' => array(
64 'type' => 'radio',
65 'items' => array(
66 array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.1', '2'),
67 array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.0', '1')
68 ),
69 'default' => '2'
70 )
71 ),
72 'term' => array(
73 'exclude' => 0,
74 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.term',
75 'config' => array(
76 'type' => 'input',
77 'size' => '30',
78 'eval' => 'trim,required'
79 )
80 ),
81 'acronym' => array(
82 'exclude' => 0,
83 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.acronym',
84 'config' => array(
85 'type' => 'input',
86 'size' => '30',
87 'eval' => 'trim,required'
88 )
89 ),
90 'static_lang_isocode' => array(
91 'exclude' => 0,
92 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.static_lang_isocode',
93 'displayCond' => 'EXT:static_info_tables:LOADED:true',
94 'config' => array(
95 'type' => 'select',
96 'items' => array(
97 array('', 0)
98 ),
99 'itemsProcFunc' => 'tx_staticinfotables_div->selectItemsTCA',
100 'itemsProcFunc_config' => array(
101 'table' => 'static_languages',
102 'indexField' => 'uid',
103 'prependHotlist' => 1
104 ),
105 'size' => 1,
106 'minitems' => 0,
107 'maxitems' => 1
108 )
109 )
110 ),
111 'types' => array(
112 '0' => array('showitem' => 'hidden;;1;;1-1-1, sys_language_uid, type, term, acronym, static_lang_isocode')
113 ),
114 'palettes' => array(
115 '1' => array('showitem' => 'starttime, endtime')
116 )
117 );
118 ?>