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