Added feature #13580: htmlArea RTE: Extjize the RTE
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / tca.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 $TCA['tx_rtehtmlarea_acronym'] = Array (
5 'ctrl' => $TCA['tx_rtehtmlarea_acronym']['ctrl'],
6 'interface' => Array (
7 'showRecordFieldList' => 'hidden,sys_language_uid,term,acronym'
8 ),
9 'columns' => Array (
10 'hidden' => Array (
11 'exclude' => 0,
12 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
13 'config' => Array (
14 'type' => 'check',
15 'default' => '0'
16 )
17 ),
18 'starttime' => Array (
19 'exclude' => 0,
20 "label" => "LLL:EXT:lang/locallang_general.xml:LGL.starttime",
21 "config" => Array (
22 "type" => "input",
23 "size" => "8",
24 "max" => "20",
25 "eval" => "date",
26 "default" => "0",
27 "checkbox" => "0"
28 )
29 ),
30 'endtime' => Array (
31 'exclude' => 0,
32 "label" => "LLL:EXT:lang/locallang_general.xml:LGL.endtime",
33 "config" => Array (
34 "type" => "input",
35 "size" => "8",
36 "max" => "20",
37 "eval" => "date",
38 "checkbox" => "0",
39 "default" => "0",
40 "range" => Array (
41 "upper" => mktime(0,0,0,12,31,2020),
42 "lower" => mktime(0,0,0,date("m")-1,date("d"),date("Y"))
43 )
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.0', '1'),
67 Array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.1', '2'),
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 ?>