* Fixes and features to htmlArea RTE extension (see details in local ChangeLog)
[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' => 0,
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 )
70 ),
71 'term' => Array (
72 'exclude' => 0,
73 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.term',
74 'config' => Array (
75 'type' => 'input',
76 'size' => '30',
77 'eval' => 'trim,required',
78 )
79 ),
80 'acronym' => Array (
81 'exclude' => 0,
82 'label' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.acronym',
83 'config' => Array (
84 'type' => 'input',
85 'size' => '30',
86 'eval' => 'trim,required',
87 )
88 ),
89 ),
90 'types' => Array (
91 '0' => Array( 'showitem' => 'hidden;;1;;1-1-1, sys_language_uid, type, term, acronym')
92 ),
93 "palettes" => Array (
94 "1" => Array("showitem" => "starttime, endtime")
95 )
96 );
97 ?>