[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / sys_template.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'sortby' => 'sorting',
8 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
9 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template',
10 'versioningWS' => TRUE,
11 'origUid' => 't3_origuid',
12 'crdate' => 'crdate',
13 'cruser_id' => 'cruser_id',
14 'delete' => 'deleted',
15 'adminOnly' => 1,
16 // Only admin, if any
17 'iconfile' => 'tcarecords-sys_template-default',
18 'enablecolumns' => array(
19 'disabled' => 'hidden',
20 'starttime' => 'starttime',
21 'endtime' => 'endtime'
22 ),
23 'typeicon_column' => 'root',
24 'typeicon_classes' => array(
25 'default' => 'mimetypes-x-content-template-extension',
26 '1' => 'mimetypes-x-content-template'
27 ),
28 'searchFields' => 'title,constants,config'
29 ),
30 'interface' => array(
31 'showRecordFieldList' => 'title,clear,root,basedOn,nextLevel,sitetitle,description,hidden,starttime,endtime'
32 ),
33 'columns' => array(
34 'title' => array(
35 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.title',
36 'config' => array(
37 'type' => 'input',
38 'size' => '25',
39 'max' => '255',
40 'eval' => 'required'
41 )
42 ),
43 'hidden' => array(
44 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
45 'exclude' => 1,
46 'config' => array(
47 'type' => 'check',
48 'default' => '0'
49 )
50 ),
51 'starttime' => array(
52 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
53 'exclude' => 1,
54 'config' => array(
55 'type' => 'input',
56 'size' => '13',
57 'eval' => 'datetime',
58 'default' => '0'
59 )
60 ),
61 'endtime' => array(
62 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
63 'exclude' => 1,
64 'config' => array(
65 'type' => 'input',
66 'size' => '13',
67 'eval' => 'datetime',
68 'default' => '0',
69 'range' => array(
70 'upper' => mktime(0, 0, 0, 12, 31, 2020)
71 )
72 )
73 ),
74 'root' => array(
75 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
76 'config' => array(
77 'type' => 'check'
78 )
79 ),
80 'clear' => array(
81 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
82 'config' => array(
83 'type' => 'check',
84 'items' => array(
85 array('Constants', ''),
86 array('Setup', '')
87 ),
88 'cols' => 2
89 )
90 ),
91 'sitetitle' => array(
92 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.sitetitle',
93 'config' => array(
94 'type' => 'input',
95 'size' => '25',
96 'max' => '255'
97 )
98 ),
99 'constants' => array(
100 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
101 'config' => array(
102 'type' => 'text',
103 'cols' => '48',
104 'rows' => '10',
105 'wrap' => 'OFF',
106 'softref' => 'TStemplate,email[subst],url[subst]'
107 ),
108 'defaultExtras' => 'fixed-font : enable-tab'
109 ),
110 'nextLevel' => array(
111 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.nextLevel',
112 'config' => array(
113 'type' => 'group',
114 'internal_type' => 'db',
115 'allowed' => 'sys_template',
116 'show_thumbs' => '1',
117 'size' => '1',
118 'maxitems' => '1',
119 'minitems' => '0',
120 'default' => '',
121 'wizards' => array(
122 'suggest' => array(
123 'type' => 'suggest'
124 )
125 )
126 )
127 ),
128 'include_static_file' => array(
129 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
130 'config' => array(
131 'type' => 'select',
132 'renderType' => 'selectMultipleSideBySide',
133 'size' => 10,
134 'maxitems' => 100,
135 'items' => array(),
136 'enableMultiSelectFilterTextfield' => TRUE,
137 'softref' => 'ext_fileref'
138 )
139 ),
140 'basedOn' => array(
141 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
142 'config' => array(
143 'type' => 'group',
144 'internal_type' => 'db',
145 'allowed' => 'sys_template',
146 'show_thumbs' => '1',
147 'size' => '3',
148 'maxitems' => '50',
149 'autoSizeMax' => 10,
150 'minitems' => '0',
151 'default' => '',
152 'wizards' => array(
153 '_VERTICAL' => 1,
154 'suggest' => array(
155 'type' => 'suggest'
156 ),
157 'edit' => array(
158 'type' => 'popup',
159 'title' => 'Edit template',
160 'module' => array(
161 'name' => 'wizard_edit',
162 ),
163 'popup_onlyOpenIfSelected' => 1,
164 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif',
165 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
166 ),
167 'add' => array(
168 'type' => 'script',
169 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
170 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
171 'params' => array(
172 'table' => 'sys_template',
173 'pid' => '###CURRENT_PID###',
174 'setValue' => 'prepend'
175 ),
176 'module' => array(
177 'name' => 'wizard_add'
178 )
179 )
180 )
181 )
182 ),
183 'includeStaticAfterBasedOn' => array(
184 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
185 'exclude' => 1,
186 'config' => array(
187 'type' => 'check',
188 'default' => '0'
189 )
190 ),
191 'config' => array(
192 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
193 'config' => array(
194 'type' => 'text',
195 'rows' => 10,
196 'cols' => 48,
197 'wrap' => 'OFF',
198 'softref' => 'TStemplate,email[subst],url[subst]'
199 ),
200 'defaultExtras' => 'fixed-font : enable-tab'
201 ),
202 'description' => array(
203 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
204 'config' => array(
205 'type' => 'text',
206 'rows' => 5,
207 'cols' => 48
208 )
209 ),
210 'static_file_mode' => array(
211 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
212 'config' => array(
213 'type' => 'select',
214 'renderType' => 'selectSingle',
215 'items' => array(
216 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'),
217 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'),
218 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'),
219 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3')
220 ),
221 'default' => '0'
222 )
223 ),
224 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
225 't3ver_label' => array(
226 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
227 'config' => array(
228 'type' => 'input',
229 'size' => '30',
230 'max' => '255'
231 )
232 )
233 ),
234 'types' => array(
235 '1' => array('showitem' => '
236 hidden, title, sitetitle, constants, config, description,
237 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options, clear, root, nextLevel,
238 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include, includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
239 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.access, starttime, endtime')
240 )
241 );