[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Tests / Functional / Fixtures / Extensions / impexp_group_files / Configuration / TCA / tx_impexpgroupfiles_item.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 return array(
5 'ctrl' => array(
6 'title' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xlf:tx_impexpgroupfiles_item',
7 'label' => 'title',
8 'tstamp' => 'tstamp',
9 'crdate' => 'crdate',
10 'cruser_id' => 'cruser_id',
11 'sortby' => 'sorting',
12
13 'versioningWS' => true,
14 'versioning_followPages' => true,
15
16 'origUid' => 't3_origuid',
17
18 'delete' => 'deleted',
19 'enablecolumns' => array(
20 'disabled' => 'hidden',
21 'starttime' => 'starttime',
22 'endtime' => 'endtime',
23 ),
24 'searchFields' => 'price,currency,symbol,',
25 'iconfile' => 'EXT:impexp_group_files/Resources/Public/Icons/icon_tx_impexpgroupfiles_item.gif'
26 ),
27 'interface' => array(
28 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, images, image_references, flexform',
29 ),
30 'types' => array(
31 '1' => array('showitem' => 'hidden, title, images, image_references, flexform, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,starttime, endtime'),
32 ),
33 'palettes' => array(
34 '1' => array('showitem' => ''),
35 ),
36 'columns' => array(
37
38 't3ver_label' => array(
39 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
40 'config' => array(
41 'type' => 'input',
42 'size' => 30,
43 'max' => 255,
44 )
45 ),
46
47 'hidden' => array(
48 'exclude' => true,
49 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
50 'config' => array(
51 'type' => 'check',
52 ),
53 ),
54 'starttime' => array(
55 'exclude' => true,
56 'l10n_mode' => 'mergeIfNotBlank',
57 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
58 'config' => array(
59 'type' => 'input',
60 'size' => 13,
61 'eval' => 'datetime',
62 'default' => 0,
63 'range' => array(
64 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
65 ),
66 ),
67 ),
68 'endtime' => array(
69 'exclude' => true,
70 'l10n_mode' => 'mergeIfNotBlank',
71 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
72 'config' => array(
73 'type' => 'input',
74 'size' => 13,
75 'eval' => 'datetime',
76 'default' => 0,
77 'range' => array(
78 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
79 ),
80 ),
81 ),
82 'l18n_diffsource' => array(
83 'config' => array(
84 'type' => 'passthrough',
85 'default' => ''
86 )
87 ),
88 'title' => array(
89 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_title',
90 'config' => array(
91 'type' => 'input',
92 'size' => 30,
93 'max' => 255,
94 'eval' => 'required'
95 )
96 ),
97 'images' => array(
98 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_images',
99 'config' => array(
100 'type' => 'group',
101 'internal_type' => 'file',
102 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
103 'disallowed' => 'php',
104 'uploadfolder' => 'uploads/tx_impexpgroupfiles',
105 'size' => 5,
106 'maxitems' => 5,
107 'show_thumbs' => true,
108 ),
109 ),
110 'image_references' => array(
111 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_image_references',
112 'config' => array(
113 'type' => 'group',
114 'internal_type' => 'file_reference',
115 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
116 'disallowed' => 'php',
117 'size' => 5,
118 'maxitems' => 5,
119 'show_thumbs' => true,
120 ),
121 ),
122 'flexform' => array(
123 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_flexform',
124 'config' => array(
125 'type' => 'flex',
126 'ds' => array(
127 'default' => '<T3DataStructure>
128 <sheets>
129 <sDEF>
130 <ROOT>
131 <TCEforms>
132 <sheetTitle>Default</sheetTitle>
133 </TCEforms>
134 <type>array</type>
135 <el>
136 <link>
137 <TCEforms>
138 <label>Link</label>
139 <config>
140 <type>input</type>
141 <size>50</size>
142 <max>256</max>
143 <eval>trim</eval>
144 <softref>typolink</softref>
145 <wizards type="array">
146 <link type="array">
147 <type>popup</type>
148 <title>Link</title>
149 <icon>EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif</icon>
150 <module type="array">
151 <name>wizard_link</name>
152 </module>
153 <JSopenParams>width=800,height=600,status=0,menubar=0,scrollbars=1</JSopenParams>
154 </link>
155 </wizards>
156 </config>
157 </TCEforms>
158 </link>
159 <images>
160 <TCEforms>
161 <label>Images</label>
162 <config>
163 <type>group</type>
164 <internal_type>file</internal_type>
165 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
166 <disallowed>php</disallowed>
167 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
168 <size>5</size>
169 <maxitems>5</maxitems>
170 <show_thumbs>1</show_thumbs>
171 </config>
172 </TCEforms>
173 </images>
174 <image_references>
175 <TCEforms>
176 <label>Image References</label>
177 <config>
178 <type>group</type>
179 <internal_type>file_reference</internal_type>
180 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
181 <disallowed>php</disallowed>
182 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
183 <size>5</size>
184 <maxitems>5</maxitems>
185 <show_thumbs>1</show_thumbs>
186 </config>
187 </TCEforms>
188 </image_references>
189 </el>
190 </ROOT>
191 </sDEF>
192 </sheets>
193 </T3DataStructure>'
194 ),
195 'default' => ''
196 )
197 ),
198 ),
199 );