‪TYPO3CMS  9.5
sys_template.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'label' => 'title',
5  'descriptionColumn' => 'description',
6  'tstamp' => 'tstamp',
7  'sortby' => 'sorting',
8  'prependAtCopy' => 'LLL:EXT:core/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:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
44  'exclude' => true,
45  'config' => [
46  'type' => 'check',
47  'renderType' => 'checkboxToggle',
48  'default' => 0,
49  'items' => [
50  [
51  0 => '',
52  1 => '',
53  'invertStateDisplay' => true,
54  ],
55  ],
56  ],
57  ],
58  'starttime' => [
59  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
60  'exclude' => true,
61  'config' => [
62  'type' => 'input',
63  'renderType' => 'inputDateTime',
64  'eval' => 'datetime,int',
65  'default' => 0
66  ]
67  ],
68  'endtime' => [
69  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
70  'exclude' => true,
71  'config' => [
72  'type' => 'input',
73  'renderType' => 'inputDateTime',
74  'eval' => 'datetime,int',
75  'default' => 0,
76  'range' => [
77  'upper' => mktime(0, 0, 0, 1, 1, 2038)
78  ]
79  ]
80  ],
81  'root' => [
82  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
83  'config' => [
84  'type' => 'check',
85  'renderType' => 'checkboxToggle',
86  'default' => 0,
87  'items' => [
88  [
89  0 => '',
90  1 => '',
91  ],
92  ],
93  ],
94  ],
95  'clear' => [
96  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
97  'config' => [
98  'type' => 'check',
99  'items' => [
100  ['Constants', ''],
101  ['Setup', '']
102  ],
103  'cols' => 2
104  ]
105  ],
106  'sitetitle' => [
107  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.sitetitle',
108  'config' => [
109  'type' => 'input',
110  'size' => 25,
111  'max' => 255
112  ]
113  ],
114  'constants' => [
115  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
116  'config' => [
117  'type' => 'text',
118  'cols' => 48,
119  'rows' => 15,
120  'wrap' => 'off',
121  'enableTabulator' => true,
122  'fixedFont' => true,
123  'softref' => 'email[subst],url[subst]'
124  ],
125  ],
126  'nextLevel' => [
127  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.nextLevel',
128  'config' => [
129  'type' => 'group',
130  'internal_type' => 'db',
131  'allowed' => 'sys_template',
132  'size' => 1,
133  'maxitems' => 1,
134  'minitems' => 0,
135  'default' => '',
136  ]
137  ],
138  'include_static_file' => [
139  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
140  'config' => [
141  'type' => 'select',
142  'renderType' => 'selectMultipleSideBySide',
143  'size' => 10,
144  'maxitems' => 100,
145  'items' => [],
146  'enableMultiSelectFilterTextfield' => true,
147  'softref' => 'ext_fileref'
148  ]
149  ],
150  'basedOn' => [
151  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
152  'config' => [
153  'type' => 'group',
154  'internal_type' => 'db',
155  'allowed' => 'sys_template',
156  'maxitems' => 50,
157  'autoSizeMax' => 10,
158  'minitems' => 0,
159  'default' => '',
160  'fieldControl' => [
161  'editPopup' => [
162  'disabled' => false,
163  'options' => [
164  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_edit',
165  ],
166  ],
167  'addRecord' => [
168  'disabled' => false,
169  'options' => [
170  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
171  'setValue' => 'prepend'
172  ],
173  ],
174  ],
175  ]
176  ],
177  'includeStaticAfterBasedOn' => [
178  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
179  'exclude' => true,
180  'config' => [
181  'type' => 'check',
182  'renderType' => 'checkboxToggle',
183  'default' => 0,
184  'items' => [
185  [
186  0 => '',
187  1 => '',
188  ]
189  ],
190  ]
191  ],
192  'config' => [
193  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
194  'config' => [
195  'type' => 'text',
196  'rows' => 15,
197  'cols' => 48,
198  'wrap' => 'off',
199  'enableTabulator' => true,
200  'fixedFont' => true,
201  'softref' => 'email[subst],url[subst]'
202  ],
203  ],
204  'description' => [
205  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
206  'config' => [
207  'type' => 'text',
208  'rows' => 5,
209  'cols' => 48
210  ]
211  ],
212  'static_file_mode' => [
213  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
214  'config' => [
215  'type' => 'select',
216  'renderType' => 'selectSingle',
217  'items' => [
218  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'],
219  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'],
220  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'],
221  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3']
222  ],
223  'default' => 0
224  ]
225  ],
226  't3ver_label' => [
227  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
228  'config' => [
229  'type' => 'input',
230  'size' => 30,
231  'max' => 255
232  ]
233  ]
234  ],
235  'types' => [
236  '1' => ['showitem' => '
237  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
238  title, sitetitle, constants, config,
239  --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options,
240  clear, root, nextLevel,
241  --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include,
242  includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
243  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
244  hidden,--palette--;;timeRestriction,
245  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
246  description,
247  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
248  ']
249  ],
250  'palettes' => [
251  'timeRestriction' => ['showitem' => 'starttime, endtime'],
252  ],
253 ];