9c547c618616e71de08770cf454ba3baa9b99c50
[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 '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' => '1',
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' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif',
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' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
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' => 1,
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' => 'TStemplate,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 'items' => array(
214 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'),
215 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'),
216 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'),
217 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3')
218 ),
219 'default' => '0'
220 )
221 ),
222 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
223 't3ver_label' => array(
224 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
225 'config' => array(
226 'type' => 'input',
227 'size' => '30',
228 'max' => '255'
229 )
230 )
231 ),
232 'types' => array(
233 '1' => array('showitem' => '
234 hidden, title, sitetitle, constants, config, description,
235 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options, clear, root, nextLevel,
236 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include, includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
237 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.access, starttime, endtime')
238 )
239 );