[TASK] Directly wire Application and RequestHandler
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / sys_template.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'descriptionColumn' => 'description',
6 'tstamp' => 'tstamp',
7 'sortby' => 'sorting',
8 'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/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' => [
18 'disabled' => 'hidden',
19 'starttime' => 'starttime',
20 'endtime' => 'endtime'
21 ],
22 'typeicon_column' => 'root',
23 'typeicon_classes' => [
24 'default' => 'mimetypes-x-content-template-extension',
25 '1' => 'mimetypes-x-content-template'
26 ],
27 'searchFields' => 'title,constants,config'
28 ],
29 'interface' => [
30 'showRecordFieldList' => 'title,clear,root,basedOn,nextLevel,sitetitle,description,hidden,starttime,endtime'
31 ],
32 'columns' => [
33 'title' => [
34 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.title',
35 'config' => [
36 'type' => 'input',
37 'size' => 25,
38 'max' => 255,
39 'eval' => 'required'
40 ]
41 ],
42 'hidden' => [
43 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
44 'exclude' => true,
45 'config' => [
46 'type' => 'check',
47 'default' => 0
48 ]
49 ],
50 'starttime' => [
51 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
52 'exclude' => true,
53 'config' => [
54 'type' => 'input',
55 'renderType' => 'inputDateTime',
56 'eval' => 'datetime',
57 'default' => 0
58 ]
59 ],
60 'endtime' => [
61 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
62 'exclude' => true,
63 'config' => [
64 'type' => 'input',
65 'renderType' => 'inputDateTime',
66 'eval' => 'datetime',
67 'default' => 0,
68 'range' => [
69 'upper' => mktime(0, 0, 0, 1, 1, 2038)
70 ]
71 ]
72 ],
73 'root' => [
74 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
75 'config' => [
76 'type' => 'check'
77 ]
78 ],
79 'clear' => [
80 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
81 'config' => [
82 'type' => 'check',
83 'items' => [
84 ['Constants', ''],
85 ['Setup', '']
86 ],
87 'cols' => 2
88 ]
89 ],
90 'sitetitle' => [
91 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.sitetitle',
92 'config' => [
93 'type' => 'input',
94 'size' => 25,
95 'max' => 255
96 ]
97 ],
98 'constants' => [
99 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
100 'config' => [
101 'type' => 'text',
102 'cols' => 48,
103 'rows' => 10,
104 'wrap' => 'off',
105 'enableTabulator' => true,
106 'fixedFont' => true,
107 'softref' => 'email[subst],url[subst]'
108 ],
109 ],
110 'nextLevel' => [
111 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.nextLevel',
112 'config' => [
113 'type' => 'group',
114 'internal_type' => 'db',
115 'allowed' => 'sys_template',
116 'size' => 1,
117 'maxitems' => 1,
118 'minitems' => 0,
119 'default' => '',
120 ]
121 ],
122 'include_static_file' => [
123 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
124 'config' => [
125 'type' => 'select',
126 'renderType' => 'selectMultipleSideBySide',
127 'size' => 10,
128 'maxitems' => 100,
129 'items' => [],
130 'enableMultiSelectFilterTextfield' => true,
131 'softref' => 'ext_fileref'
132 ]
133 ],
134 'basedOn' => [
135 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
136 'config' => [
137 'type' => 'group',
138 'internal_type' => 'db',
139 'allowed' => 'sys_template',
140 'maxitems' => 50,
141 'autoSizeMax' => 10,
142 'minitems' => 0,
143 'default' => '',
144 'fieldControl' => [
145 'editPopup' => [
146 'disabled' => false,
147 'options' => [
148 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_edit',
149 ],
150 ],
151 'addRecord' => [
152 'disabled' => false,
153 'options' => [
154 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
155 'setValue' => 'prepend'
156 ],
157 ],
158 ],
159 ]
160 ],
161 'includeStaticAfterBasedOn' => [
162 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
163 'exclude' => true,
164 'config' => [
165 'type' => 'check',
166 'default' => 0
167 ]
168 ],
169 'config' => [
170 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
171 'config' => [
172 'type' => 'text',
173 'rows' => 10,
174 'cols' => 48,
175 'wrap' => 'off',
176 'enableTabulator' => true,
177 'fixedFont' => true,
178 'softref' => 'email[subst],url[subst]'
179 ],
180 ],
181 'description' => [
182 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
183 'config' => [
184 'type' => 'text',
185 'rows' => 5,
186 'cols' => 48
187 ]
188 ],
189 'static_file_mode' => [
190 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
191 'config' => [
192 'type' => 'select',
193 'renderType' => 'selectSingle',
194 'items' => [
195 ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'],
196 ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'],
197 ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'],
198 ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3']
199 ],
200 'default' => 0
201 ]
202 ],
203 't3ver_label' => [
204 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
205 'config' => [
206 'type' => 'input',
207 'size' => 30,
208 'max' => 255
209 ]
210 ]
211 ],
212 'types' => [
213 '1' => ['showitem' => '
214 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
215 title, sitetitle, constants, config,
216 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options,
217 clear, root, nextLevel,
218 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include,
219 includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
220 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
221 hidden,--palette--;;timeRestriction,
222 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
223 description,
224 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
225 ']
226 ],
227 'palettes' => [
228 'timeRestriction' => ['showitem' => 'starttime, endtime'],
229 ],
230 ];