[!!!][FEATURE] Add showIconTable option for selectSingle fields
[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 'checkbox' => '0'
40 )
41 ),
42 'endtime' => array(
43 'exclude' => 0,
44 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
45 'config' => array(
46 'type' => 'input',
47 'size' => '8',
48 'max' => '20',
49 'eval' => 'date',
50 'checkbox' => '0',
51 'default' => '0',
52 'range' => array(
53 'upper' => mktime(0, 0, 0, 12, 31, 2020),
54 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
55 )
56 )
57 ),
58 'sys_language_uid' => array(
59 'exclude' => 0,
60 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
61 'config' => array(
62 'type' => 'select',
63 'renderType' => 'selectSingle',
64 'foreign_table' => 'sys_language',
65 'foreign_table_where' => 'ORDER BY sys_language.title',
66 'items' => array(
67 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', '-1'),
68 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', '0')
69 ),
70 'default' => 0,
71 'showIconTable' => true,
72 )
73 ),
74 'type' => array(
75 'exclude' => 1,
76 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type',
77 'config' => array(
78 'type' => 'radio',
79 'items' => array(
80 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.1', '2'),
81 array('LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.type.I.0', '1')
82 ),
83 'default' => '2'
84 )
85 ),
86 'term' => array(
87 'exclude' => 0,
88 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.term',
89 'config' => array(
90 'type' => 'input',
91 'size' => '30',
92 'eval' => 'trim,required'
93 )
94 ),
95 'acronym' => array(
96 'exclude' => 0,
97 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.acronym',
98 'config' => array(
99 'type' => 'input',
100 'size' => '30',
101 'eval' => 'trim,required'
102 )
103 ),
104 'static_lang_isocode' => array(
105 'exclude' => 0,
106 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang_db.xlf:tx_rtehtmlarea_acronym.static_lang_isocode',
107 'displayCond' => 'EXT:static_info_tables:LOADED:true',
108 'config' => array(
109 'type' => 'select',
110 'renderType' => 'selectSingle',
111 'items' => array(
112 array('', 0),
113 ),
114 'foreign_table' => 'static_languages',
115 'foreign_table_where' => 'ORDER BY static_languages.lg_name_en',
116 'itemsProcFunc' => SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaSelectItemsProcessor::class. '->translateLanguagesSelector',
117 'size' => 1,
118 'minitems' => 0,
119 'maxitems' => 1,
120 'wizards' => array(
121 'suggest' => array(
122 'type' => 'suggest',
123 'default' => array(
124 'receiverClass' => SJBR\StaticInfoTables\Hook\Backend\Form\Wizard\SuggestReceiver::class
125 )
126 )
127 )
128 )
129 )
130 ),
131 'types' => array(
132 '0' => array(
133 'showitem' => 'hidden, --palette--;;1, sys_language_uid, type, term, acronym, static_lang_isocode',
134 ),
135 ),
136 'palettes' => array(
137 '1' => array(
138 'showitem' => 'starttime, endtime',
139 ),
140 ),
141 );