[FEATURE] Adapt to new TCA and Form Engine API of TYPO3 CMS 7
[TYPO3CMS/Extensions/static_info_tables.git] / Configuration / TCA / static_country_zones.php
1 <?php
2 // Country subdivision reference data from ISO 3166-2
3 return array(
4 'ctrl' => array(
5 'label' => 'zn_name_local',
6 'label_alt' => 'zn_name_local,zn_code',
7 'adminOnly' => 1,
8 'rootLevel' => 1,
9 'is_static' => 1,
10 'readOnly' => 1,
11 'default_sortby' => 'ORDER BY zn_name_local',
12 'delete' => 'deleted',
13 'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones.title',
14 'iconfile' => 'EXT:static_info_tables/Resources/Public/Images/Icons/icon_static_countries.gif',
15 'searchFields' => 'zn_name_en,zn_name_local'
16 ),
17 'interface' => array(
18 'showRecordFieldList' => 'zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3,zn_code,zn_name_local,zn_name_en'
19 ),
20 'columns' => array(
21 'deleted' => array(
22 'readonly' => 1,
23 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
24 'config' => array(
25 'type' => 'check'
26 )
27 ),
28 'zn_country_uid' => array(
29 'config' => array(
30 'type' => 'passthrough',
31 )
32 ),
33 'zn_country_table' => array(
34 'config' => array(
35 'type' => 'passthrough',
36 )
37 ),
38 'zn_country_iso_nr' => array(
39 'config' => array(
40 'type' => 'passthrough',
41 )
42 ),
43 'zn_country_iso_2' => array(
44 'config' => array(
45 'type' => 'passthrough',
46 )
47 ),
48 'zn_country_iso_3' => array(
49 'config' => array(
50 'type' => 'passthrough',
51 )
52 ),
53 'zn_code' => array(
54 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_code',
55 'exclude' => '0',
56 'config' => array(
57 'type' => 'input',
58 'size' => '18',
59 'max' => '45',
60 'eval' => 'trim',
61 'default' => '',
62 '_is_string' => '1'
63 )
64 ),
65 'zn_name_local' => array(
66 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
67 'exclude' => '0',
68 'config' => array(
69 'type' => 'input',
70 'size' => '18',
71 'max' => '45',
72 'eval' => 'trim',
73 'default' => '',
74 '_is_string' => '1'
75 )
76 ),
77 'zn_name_en' => array(
78 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_name_en',
79 'exclude' => '0',
80 'config' => array(
81 'type' => 'input',
82 'size' => '18',
83 'max' => '45',
84 'eval' => 'trim',
85 'default' => '',
86 '_is_string' => '1'
87 )
88 ),
89 ),
90 'types' => array(
91 '1' => array(
92 'showitem' => 'zn_name_local,zn_code,--palette--;;1;;,zn_name_en'
93 )
94 ),
95 'palettes' => array(
96 '1' => array(
97 'showitem' => 'zn_country_uid,zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3', 'canNotCollapse' => '1'
98 )
99 )
100 );