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