[BUGFIX] Fix deprecated TCA specification for select fields
[TYPO3CMS/Extensions/static_info_tables.git] / Configuration / TCA / static_countries.php
1 <?php
2 // Country reference data from ISO 3166-1
3 return array(
4 'ctrl' => array(
5 'label' => 'cn_short_en',
6 'label_alt' => 'cn_iso_2',
7 'label_alt_force' => 1,
8 'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
9 'adminOnly' => 1,
10 'rootLevel' => 1,
11 'is_static' => 1,
12 'readOnly' => 1,
13 'default_sortby' => 'ORDER BY cn_short_en',
14 'delete' => 'deleted',
15 'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries.title',
16 'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_countries.gif',
17 'searchFields' => 'cn_short_en,cn_official_name_local,cn_official_name_en'
18 ),
19 'interface' => array(
20 'showRecordFieldList' => 'cn_iso_2,cn_iso_3,cn_iso_nr,cn_official_name_local,cn_official_name_en,cn_capital,cn_tldomain,cn_currency_iso_3,cn_currency_iso_nr,cn_phone,cn_uno_member,cn_eu_member,cn_address_format,cn_short_en'
21 ),
22 'columns' => array(
23 'deleted' => array(
24 'readonly' => 1,
25 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
26 'config' => array(
27 'type' => 'check'
28 )
29 ),
30 'cn_iso_2' => array(
31 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
32 'exclude' => '0',
33 'config' => array(
34 'type' => 'input',
35 'size' => '4',
36 'max' => '2',
37 'eval' => '',
38 'default' => ''
39 )
40 ),
41 'cn_iso_3' => array(
42 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_3',
43 'exclude' => '0',
44 'config' => array(
45 'type' => 'input',
46 'size' => '5',
47 'max' => '3',
48 'eval' => '',
49 'default' => ''
50 )
51 ),
52 'cn_iso_nr' => array(
53 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_nr',
54 'exclude' => '0',
55 'config' => array(
56 'type' => 'input',
57 'size' => '7',
58 'max' => '7',
59 'eval' => 'int',
60 'default' => '0'
61 )
62 ),
63 'cn_parent_territory_uid' => array(
64 'exclude' => 0,
65 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_parent_territory_uid',
66 'config' => array(
67 'type' => 'select',
68 'renderType' => 'selectSingle',
69 'noIconsBelowSelect' => 1,
70 'items' => array(
71 array('', 0),
72 ),
73 'foreign_table' => 'static_territories',
74 'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
75 'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaSelectItemsProcessor->translateTerritoriesSelector',
76 'size' => 1,
77 'minitems' => 0,
78 'maxitems' => 1,
79 )
80 ),
81 'cn_parent_tr_iso_nr' => array(
82 'config' => array(
83 'type' => 'passthrough',
84 )
85 ),
86 'cn_official_name_local' => array(
87 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_local',
88 'exclude' => '0',
89 'config' => array(
90 'type' => 'input',
91 'size' => '25',
92 'max' => '128',
93 'eval' => 'trim',
94 'default' => '',
95 '_is_string' => '1'
96 )
97 ),
98 'cn_official_name_en' => array(
99 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_en',
100 'exclude' => '0',
101 'config' => array(
102 'type' => 'input',
103 'size' => '25',
104 'max' => '50',
105 'eval' => 'trim',
106 'default' => '',
107 '_is_string' => '1'
108 )
109 ),
110 'cn_capital' => array(
111 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_capital',
112 'exclude' => '0',
113 'config' => array(
114 'type' => 'input',
115 'size' => '15',
116 'max' => '45',
117 'eval' => 'trim',
118 'default' => '',
119 '_is_string' => '1'
120 )
121 ),
122 'cn_tldomain' => array(
123 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_tldomain',
124 'exclude' => '0',
125 'config' => array(
126 'type' => 'input',
127 'size' => '5',
128 'max' => '',
129 'eval' => '',
130 'default' => ''
131 )
132 ),
133 'cn_currency_uid' => array(
134 'exclude' => 0,
135 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_currency_uid',
136 'config' => array(
137 'type' => 'select',
138 'renderType' => 'selectSingle',
139 'noIconsBelowSelect' => 1,
140 'items' => array(
141 array('', 0),
142 ),
143 'foreign_table' => 'static_currencies',
144 'foreign_table_where' => 'ORDER BY static_currencies.cu_name_en',
145 'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaSelectItemsProcessor->translateCurrenciesSelector',
146 'size' => 1,
147 'minitems' => 0,
148 'maxitems' => 1,
149 'wizards' => array(
150 'suggest' => array(
151 'type' => 'suggest',
152 'default' => array(
153 'receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\Wizard\\SuggestReceiver'
154 )
155 )
156 )
157 )
158 ),
159 'cn_currency_iso_nr' => array(
160 'config' => array(
161 'type' => 'passthrough',
162 )
163 ),
164 'cn_currency_iso_3' => array(
165 'config' => array(
166 'type' => 'passthrough',
167 )
168 ),
169 'cn_phone' => array(
170 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_phone',
171 'exclude' => '0',
172 'config' => array(
173 'type' => 'input',
174 'size' => '10',
175 'max' => '20',
176 'eval' => '',
177 'default' => '0'
178 )
179 ),
180 'cn_eu_member' => array(
181 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_eu_member',
182 'exclude' => '0',
183 'config' => array(
184 'type' => 'check',
185 'default' => '0'
186 )
187 ),
188 'cn_uno_member' => array(
189 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_uno_member',
190 'exclude' => '0',
191 'config' => array(
192 'type' => 'check',
193 'default' => '0'
194 )
195 ),
196 'cn_address_format' => array(
197 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format',
198 'exclude' => '0',
199 'config' => array(
200 'type' => 'select',
201 'renderType' => 'selectSingle',
202 'items' => array(
203 array('','0'),
204 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_1','1'),
205 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_2','2'),
206 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_3','3'),
207 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_4','4'),
208 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_5','5'),
209 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_6','6'),
210 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_7','7'),
211 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_8','8'),
212 array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_9','9'),
213 ),
214 'default' => '0'
215 )
216 ),
217 'cn_zone_flag' => array(
218 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_zone_flag',
219 'exclude' => '0',
220 'config' => array(
221 'type' => 'check',
222 'default' => '0'
223 )
224 ),
225 'cn_short_local' => array(
226 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_local',
227 'exclude' => '0',
228 'config' => array(
229 'type' => 'input',
230 'size' => '25',
231 'max' => '50',
232 'eval' => 'trim',
233 'default' => '',
234 '_is_string' => '1'
235 )
236 ),
237 'cn_short_en' => array(
238 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_en',
239 'exclude' => '0',
240 'config' => array(
241 'type' => 'input',
242 'size' => '25',
243 'max' => '50',
244 'eval' => 'trim',
245 'default' => '',
246 '_is_string' => '1'
247 )
248 ),
249 'cn_country_zones' => array(
250 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_country_zones',
251 'exclude' => '0',
252 'config' => array(
253 'type' => 'inline',
254 'foreign_table' => 'static_country_zones',
255 'foreign_field' => 'zn_country_uid',
256 'foreign_table_field' => 'zn_country_table',
257 'foreign_default_sortby' => 'zn_name_local',
258 'maxitems' => '200',
259 'appearance' => array(
260 'expandSingle' => 1,
261 'newRecordLinkAddTitle' => 1
262 )
263 )
264 )
265 ),
266 'types' => array(
267 '1' => array(
268 'showitem' => 'cn_short_local,cn_official_name_local,cn_official_name_en,--palette--;;1;;,--palette--;;5;;,--palette--;;2;;,--palette--;;3;;,--palette--;;6;;,--palette--;;4;;,cn_short_en,cn_country_zones'
269 )
270 ),
271 'palettes' => array(
272 '1' => array(
273 'showitem' => 'cn_iso_nr,cn_iso_2,cn_iso_3', 'canNotCollapse' => '1'
274 ),
275 '2' => array(
276 'showitem' => 'cn_currency_uid,cn_currency_iso_nr,cn_currency_iso_3', 'canNotCollapse' => '1'
277 ),
278 '3' => array(
279 'showitem' => 'cn_capital,cn_uno_member,cn_eu_member', 'canNotCollapse' => '1'
280 ),
281 '4' => array(
282 'showitem' => 'cn_address_format,cn_zone_flag', 'canNotCollapse' => '1'
283 ),
284 '5' => array(
285 'showitem' => 'cn_parent_territory_uid,cn_parent_tr_iso_nr', 'canNotCollapse' => '1'
286 ),
287 '6' => array(
288 'showitem' => 'cn_phone,cn_tldomain', 'canNotCollapse' => '1'
289 ),
290 )
291 );