‪TYPO3CMS  10.4
sys_template.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'label' => 'title',
6  'descriptionColumn' => 'description',
7  'tstamp' => 'tstamp',
8  'sortby' => 'sorting',
9  'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
10  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template',
11  'versioningWS' => true,
12  'origUid' => 't3_origuid',
13  'crdate' => 'crdate',
14  'cruser_id' => 'cruser_id',
15  'delete' => 'deleted',
16  // Only admin, if any
17  'adminOnly' => true,
18  'enablecolumns' => [
19  'disabled' => 'hidden',
20  'starttime' => 'starttime',
21  'endtime' => 'endtime'
22  ],
23  'typeicon_column' => 'root',
24  'typeicon_classes' => [
25  'default' => 'mimetypes-x-content-template-extension',
26  '1' => 'mimetypes-x-content-template'
27  ],
28  'searchFields' => 'title,constants,config'
29  ],
30  'columns' => [
31  'title' => [
32  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.title',
33  'config' => [
34  'type' => 'input',
35  'size' => 25,
36  'max' => 255,
37  'eval' => 'required'
38  ]
39  ],
40  'hidden' => [
41  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
42  'exclude' => true,
43  'config' => [
44  'type' => 'check',
45  'renderType' => 'checkboxToggle',
46  'default' => 0,
47  'items' => [
48  [
49  0 => '',
50  1 => '',
51  'invertStateDisplay' => true,
52  ],
53  ],
54  ],
55  ],
56  'starttime' => [
57  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
58  'exclude' => true,
59  'config' => [
60  'type' => 'input',
61  'renderType' => 'inputDateTime',
62  'eval' => 'datetime,int',
63  'default' => 0
64  ]
65  ],
66  'endtime' => [
67  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
68  'exclude' => true,
69  'config' => [
70  'type' => 'input',
71  'renderType' => 'inputDateTime',
72  'eval' => 'datetime,int',
73  'default' => 0,
74  'range' => [
75  'upper' => mktime(0, 0, 0, 1, 1, 2038)
76  ]
77  ]
78  ],
79  'root' => [
80  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
81  'config' => [
82  'type' => 'check',
83  'renderType' => 'checkboxToggle',
84  'default' => 0,
85  'items' => [
86  [
87  0 => '',
88  1 => '',
89  ],
90  ],
91  ],
92  ],
93  'clear' => [
94  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
95  'config' => [
96  'type' => 'check',
97  'items' => [
98  ['Constants', ''],
99  ['Setup', '']
100  ],
101  'cols' => 2
102  ]
103  ],
104  'sitetitle' => [
105  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.sitetitle',
106  'config' => [
107  'type' => 'input',
108  'size' => 25,
109  'max' => 255
110  ]
111  ],
112  'constants' => [
113  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
114  'config' => [
115  'type' => 'text',
116  'cols' => 48,
117  'rows' => 15,
118  'wrap' => 'off',
119  'enableTabulator' => true,
120  'fixedFont' => true,
121  'softref' => 'email[subst],url[subst]'
122  ],
123  ],
124  'include_static_file' => [
125  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
126  'config' => [
127  'type' => 'select',
128  'renderType' => 'selectMultipleSideBySide',
129  'size' => 10,
130  'maxitems' => 100,
131  'items' => [],
132  'softref' => 'ext_fileref'
133  ]
134  ],
135  'basedOn' => [
136  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
137  'config' => [
138  'type' => 'group',
139  'internal_type' => 'db',
140  'allowed' => 'sys_template',
141  'maxitems' => 50,
142  'autoSizeMax' => 10,
143  'minitems' => 0,
144  'default' => '',
145  'fieldControl' => [
146  'editPopup' => [
147  'disabled' => false,
148  'options' => [
149  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_edit',
150  ],
151  ],
152  'addRecord' => [
153  'disabled' => false,
154  'options' => [
155  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
156  'setValue' => 'prepend'
157  ],
158  ],
159  ],
160  ]
161  ],
162  'includeStaticAfterBasedOn' => [
163  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
164  'exclude' => true,
165  'config' => [
166  'type' => 'check',
167  'renderType' => 'checkboxToggle',
168  'default' => 0,
169  'items' => [
170  [
171  0 => '',
172  1 => '',
173  ]
174  ],
175  ]
176  ],
177  'config' => [
178  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
179  'config' => [
180  'type' => 'text',
181  'rows' => 15,
182  'cols' => 48,
183  'wrap' => 'off',
184  'enableTabulator' => true,
185  'fixedFont' => true,
186  'softref' => 'email[subst],url[subst]'
187  ],
188  ],
189  'description' => [
190  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
191  'config' => [
192  'type' => 'text',
193  'rows' => 5,
194  'cols' => 48
195  ]
196  ],
197  'static_file_mode' => [
198  'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
199  'config' => [
200  'type' => 'select',
201  'renderType' => 'selectSingle',
202  'items' => [
203  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'],
204  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'],
205  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'],
206  ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3']
207  ],
208  'default' => 0
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,
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 ];