207a5c0e9f21805c0f10d45ef576a691f1d9a15d
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Configuration / TCA / tx_rtehtmlarea_acronym.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym',
5 'label' => 'term',
6 'default_sortby' => 'ORDER BY term',
7 'sortby' => 'sorting',
8 'delete' => 'deleted',
9 'enablecolumns' => array(
10 'disabled' => 'hidden',
11 'starttime' => 'starttime',
12 'endtime' => 'endtime'
13 ),
14 'typeicon_classes' => array(
15 'default' => 'mimetypes-x-tx_rtehtmlarea_acronym'
16 )
17 ),
18 'interface' => array(
19 'showRecordFieldList' => 'hidden,sys_language_uid,term,acronym'
20 ),
21 'columns' => array(
22 'hidden' => array(
23 'exclude' => 0,
24 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
25 'config' => array(
26 'type' => 'check',
27 'default' => '0'
28 )
29 ),
30 'starttime' => array(
31 'exclude' => 0,
32 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
33 'config' => array(
34 'type' => 'input',
35 'size' => '8',
36 'max' => '20',
37 'eval' => 'date',
38 'default' => '0',
39 )
40 ),
41 'endtime' => array(
42 'exclude' => 0,
43 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
44 'config' => array(
45 'type' => 'input',
46 'size' => '8',
47 'max' => '20',
48 'eval' => 'date',
49 'default' => '0',
50 'range' => array(
51 'upper' => mktime(0, 0, 0, 12, 31, 2020),
52 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
53 )
54 )
55 ),
56 'sys_language_uid' => array(
57 'exclude' => 0,
58 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
59 'config' => array(
60 'type' => 'select',
61 'renderType' => 'selectSingle',
62 'foreign_table' => 'sys_language',
63 'foreign_table_where' => 'ORDER BY sys_language.title',
64 'items' => array(
65 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', '-1'),
66 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', '0')
67 ),
68 'default' => 0,
69 'showIconTable' => true,
70 )
71 ),
72 'type' => array(
73 'exclude' => 1,
74 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type',
75 'config' => array(
76 'type' => 'radio',
77 'items' => array(
78 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.1', '2'),
79 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.0', '1')
80 ),
81 'default' => '2'
82 )
83 ),
84 'term' => array(
85 'exclude' => 0,
86 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.term',
87 'config' => array(
88 'type' => 'input',
89 'size' => '30',
90 'eval' => 'trim,required'
91 )
92 ),
93 'acronym' => array(
94 'exclude' => 0,
95 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.acronym',
96 'config' => array(
97 'type' => 'input',
98 'size' => '30',
99 'eval' => 'trim,required'
100 )
101 ),
102 'static_lang_isocode' => array(
103 'exclude' => 0,
104 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.static_lang_isocode',
105 'displayCond' => 'EXT:static_info_tables:LOADED:true',
106 'config' => array(
107 'type' => 'select',
108 'renderType' => 'selectSingle',
109 'items' => array(
110 array('', 0),
111 ),
112 'foreign_table' => 'static_languages',
113 'foreign_table_where' => 'ORDER BY static_languages.lg_name_en',
114 'itemsProcFunc' => SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaSelectItemsProcessor::class. '->translateLanguagesSelector',
115 'size' => 1,
116 'minitems' => 0,
117 'maxitems' => 1,
118 'wizards' => array(
119 'suggest' => array(
120 'type' => 'suggest',
121 'default' => array(
122 'receiverClass' => SJBR\StaticInfoTables\Hook\Backend\Form\Wizard\SuggestReceiver::class
123 )
124 )
125 )
126 )
127 )
128 ),
129 'types' => array(
130 '0' => array(
131 'showitem' => 'hidden, --palette--;;1, sys_language_uid, type, term, acronym, static_lang_isocode',
132 ),
133 ),
134 'palettes' => array(
135 '1' => array(
136 'showitem' => 'starttime, endtime',
137 ),
138 ),
139 );