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