128a5283fb6594d5b895c89a0d3669935c9b4368
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / Configuration / TCA / sys_template.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'sortby' => 'sorting',
7 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
8 'title' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template',
9 'versioningWS' => TRUE,
10 'origUid' => 't3_origuid',
11 'crdate' => 'crdate',
12 'cruser_id' => 'cruser_id',
13 'delete' => 'deleted',
14 'adminOnly' => 1,
15 // Only admin, if any
16 'iconfile' => 'template.gif',
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 'typeicons' => array(
28 '0' => 'template_add.gif'
29 ),
30 'dividers2tabs' => 1,
31 'searchFields' => 'title,constants,config'
32 ),
33 'interface' => array(
34 'showRecordFieldList' => 'title,clear,root,basedOn,nextLevel,sitetitle,description,hidden,starttime,endtime'
35 ),
36 'columns' => array(
37 'title' => array(
38 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.title',
39 'config' => array(
40 'type' => 'input',
41 'size' => '25',
42 'max' => '256',
43 'eval' => 'required'
44 )
45 ),
46 'hidden' => array(
47 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
48 'exclude' => 1,
49 'config' => array(
50 'type' => 'check',
51 'default' => '0'
52 )
53 ),
54 'starttime' => array(
55 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
56 'exclude' => 1,
57 'config' => array(
58 'type' => 'input',
59 'size' => '13',
60 'max' => '20',
61 'eval' => 'datetime',
62 'default' => '0'
63 )
64 ),
65 'endtime' => array(
66 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
67 'exclude' => 1,
68 'config' => array(
69 'type' => 'input',
70 'size' => '13',
71 'max' => '20',
72 'eval' => 'datetime',
73 'default' => '0',
74 'range' => array(
75 'upper' => mktime(0, 0, 0, 12, 31, 2020)
76 )
77 )
78 ),
79 'root' => array(
80 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.root',
81 'config' => array(
82 'type' => 'check'
83 )
84 ),
85 'clear' => array(
86 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.clear',
87 'config' => array(
88 'type' => 'check',
89 'items' => array(
90 array('Constants', ''),
91 array('Setup', '')
92 ),
93 'cols' => 2
94 )
95 ),
96 'sitetitle' => array(
97 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.sitetitle',
98 'config' => array(
99 'type' => 'input',
100 'size' => '25',
101 'max' => '256'
102 )
103 ),
104 'constants' => array(
105 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.constants',
106 'config' => array(
107 'type' => 'text',
108 'cols' => '48',
109 'rows' => '10',
110 'wrap' => 'OFF',
111 'softref' => 'TStemplate,email[subst],url[subst]'
112 ),
113 'defaultExtras' => 'fixed-font : enable-tab'
114 ),
115 'nextLevel' => array(
116 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.nextLevel',
117 'config' => array(
118 'type' => 'group',
119 'internal_type' => 'db',
120 'allowed' => 'sys_template',
121 'show_thumbs' => '1',
122 'size' => '1',
123 'maxitems' => '1',
124 'minitems' => '0',
125 'default' => '',
126 'wizards' => array(
127 'suggest' => array(
128 'type' => 'suggest'
129 )
130 )
131 )
132 ),
133 'include_static_file' => array(
134 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.include_static_file',
135 'config' => array(
136 'type' => 'select',
137 'size' => 10,
138 'maxitems' => 100,
139 'items' => array(),
140 'softref' => 'ext_fileref'
141 )
142 ),
143 'basedOn' => array(
144 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.basedOn',
145 'config' => array(
146 'type' => 'group',
147 'internal_type' => 'db',
148 'allowed' => 'sys_template',
149 'show_thumbs' => '1',
150 'size' => '3',
151 'maxitems' => '50',
152 'autoSizeMax' => 10,
153 'minitems' => '0',
154 'default' => '',
155 'wizards' => array(
156 '_PADDING' => 4,
157 '_VERTICAL' => 1,
158 'suggest' => array(
159 'type' => 'suggest'
160 ),
161 'edit' => array(
162 'type' => 'popup',
163 'title' => 'Edit template',
164 'script' => 'wizard_edit.php',
165 'popup_onlyOpenIfSelected' => 1,
166 'icon' => 'edit2.gif',
167 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
168 ),
169 'add' => array(
170 'type' => 'script',
171 'title' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.basedOn_add',
172 'icon' => 'add.gif',
173 'params' => array(
174 'table' => 'sys_template',
175 'pid' => '###CURRENT_PID###',
176 'setValue' => 'prepend'
177 ),
178 'script' => 'wizard_add.php'
179 )
180 )
181 )
182 ),
183 'includeStaticAfterBasedOn' => array(
184 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
185 'exclude' => 1,
186 'config' => array(
187 'type' => 'check',
188 'default' => '0'
189 )
190 ),
191 'config' => array(
192 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.config',
193 'config' => array(
194 'type' => 'text',
195 'rows' => 10,
196 'cols' => 48,
197 'wizards' => array(
198 '_PADDING' => 4,
199 '0' => array(
200 'title' => 'TSref online',
201 'script' => 'wizard_tsconfig.php?mode=tsref',
202 'icon' => 'wizard_tsconfig.gif',
203 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1'
204 )
205 ),
206 'wrap' => 'OFF',
207 'softref' => 'TStemplate,email[subst],url[subst]'
208 ),
209 'defaultExtras' => 'fixed-font : enable-tab'
210 ),
211 'description' => array(
212 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.description',
213 'config' => array(
214 'type' => 'text',
215 'rows' => 5,
216 'cols' => 48
217 )
218 ),
219 'static_file_mode' => array(
220 'label' => 'LLL:EXT:cms/locallang_tca.xlf:sys_template.static_file_mode',
221 'config' => array(
222 'type' => 'select',
223 'items' => array(
224 array('LLL:EXT:cms/locallang_tca.xlf:sys_template.static_file_mode.0', '0'),
225 array('LLL:EXT:cms/locallang_tca.xlf:sys_template.static_file_mode.1', '1'),
226 array('LLL:EXT:cms/locallang_tca.xlf:sys_template.static_file_mode.2', '2'),
227 array('LLL:EXT:cms/locallang_tca.xlf:sys_template.static_file_mode.3', '3')
228 ),
229 'default' => '0'
230 )
231 ),
232 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
233 't3ver_label' => array(
234 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
235 'config' => array(
236 'type' => 'input',
237 'size' => '30',
238 'max' => '255'
239 )
240 )
241 ),
242 'types' => array(
243 '1' => array('showitem' => '
244 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
245 --div--;LLL:EXT:cms/locallang_tca.xlf:sys_template.tabs.options, clear, root, nextLevel,
246 --div--;LLL:EXT:cms/locallang_tca.xlf:sys_template.tabs.include, includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
247 --div--;LLL:EXT:cms/locallang_tca.xlf:sys_template.tabs.access, starttime, endtime')
248 )
249 );
250 ?>