0015988_v3.patch

Administrator Admin, 2010-10-15 14:08

Download (50.2 KB)

View differences:

t3lib/stddb/tables.php (Arbeitskopie)
58 58
 * NOTE: usage of 'icon' is deprecated since TYPO3 4.4, use t3lib_SpriteManager::addTcaTypeIcon() instead
59 59
 */
60 60
$PAGES_TYPES = array(
61
	'3' => array(
62
	),
63
	'4' => array(
64
	),
65
	'5' => array(
66
	),
67
	'6' => array(
68
		'type' => 'web',
69
		'allowedTables' => '*'
70
	),
71
	'7' => array(
72
	),
73
	'199' => array(		// TypoScript: Limit is 200. When the doktype is 200 or above, the page WILL NOT be regarded as a 'page' by TypoScript. Rather is it a system-type page
74
		'type' => 'sys',
75
	),
61 76
	'254' => array(		//  Doktype 254 is a 'sysFolder' - a general purpose storage folder for whatever you like. In CMS context it's NOT a viewable page. Can contain any element.
62 77
		'type' => 'sys',
63 78
		'allowedTables' => '*'
......
147 162
		'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
148 163
		'cruser_id' => 'cruser_id',
149 164
		'editlock' => 'editlock',
150
		'useColumnsForDefaultValues' => 'doktype',
165
		'useColumnsForDefaultValues' => 'doktype,fe_group,hidden',
166
		'dividers2tabs' => 1,
167
		'enablecolumns' => array(
168
			'disabled' => 'hidden',
169
			'starttime' => 'starttime',
170
			'endtime' => 'endtime',
171
			'fe_group' => 'fe_group',
172
		),
173
		'transForeignTable' => 'pages_language_overlay',
151 174
		'typeicon_column' => 'doktype',
152 175
		'typeicon_classes' => array(
153 176
			'1' => 'apps-pagetree-page-default',
......
179 202
			'contains-board' => 'apps-pagetree-folder-contains-board',
180 203
			'contains-news' => 'apps-pagetree-folder-contains-news',
181 204
			'default' => 'apps-pagetree-page-default',
182

  
183 205
		),
184 206
		'typeicons' => array(
185 207
			'1' => 'pages.gif',
186 208
			'254' => 'sysf.gif',
187 209
			'255' => 'recycler.gif',
188
		)
189
	),
190
	'interface' => array(
191
		'showRecordFieldList' => 'doktype,title',
192
		'maxDBListItems' => 30,
193
		'maxSingleDBListItems' => 50
194
	),
195
	'columns' => array(
196
		'doktype' => array(
197
			'exclude' => 1,
198
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
199
			'config' => array(
200
				'type' => 'select',
201
				'items' => array(
202
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1', 'i/pages.gif'),
203
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254', 'i/sysf.gif'),
204
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255', 'i/recycler.gif')
205
				),
206
				'default' => '1',
207
				'iconsInOptionTags' => 1,
208
				'noIconsBelowSelect' => 1,
209
			)
210 210
		),
211
		'title' => array(
212
			'label' => 'LLL:EXT:lang/locallang_tca.php:title',
213
			'config' => array(
214
				'type' => 'input',
215
				'size' => '30',
216
				'max' => '255',
217
				'eval' => 'required'
218
			)
219
		),
220
		'TSconfig' => array(
221
			'exclude' => 1,
222
			'label' => 'TSconfig:',
223
			'config' => array(
224
				'type' => 'text',
225
				'cols' => '40',
226
				'rows' => '5',
227
				'wizards' => array(
228
					'_PADDING' => 4,
229
					'0' => array(
230
						'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
231
						'title' => 'TSconfig QuickReference',
232
						'script' => 'wizard_tsconfig.php?mode=page',
233
						'icon' => 'wizard_tsconfig.gif',
234
						'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
235
					)
236
				),
237
				'softref' => 'TSconfig'
238
			),
239
			'defaultExtras' => 'fixed-font : enable-tab',
240
		),
241
		'php_tree_stop' => array(
242
			'exclude' => 1,
243
			'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
244
			'config' => array(
245
				'type' => 'check'
246
			)
247
		),
248
		'is_siteroot' => array(
249
			'exclude' => 1,
250
			'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
251
			'config' => array(
252
				'type' => 'check'
253
			)
254
		),
255
		'storage_pid' => array(
256
			'exclude' => 1,
257
			'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
258
			'config' => array(
259
				'type' => 'group',
260
				'internal_type' => 'db',
261
				'allowed' => 'pages',
262
				'size' => '1',
263
				'maxitems' => '1',
264
				'minitems' => '0',
265
				'show_thumbs' => '1',
266
				'wizards' => array(
267
					'suggest' => array(
268
						'type' => 'suggest',
269
					),
270
				),
271
			)
272
		),
273
		'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
274
		't3ver_label' => array(
275
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
276
			'config' => array(
277
				'type' => 'input',
278
				'size' => '30',
279
				'max' => '255',
280
			)
281
		),
282
		'editlock' => array(
283
			'exclude' => 1,
284
			'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
285
			'config' => array(
286
				'type' => 'check'
287
			)
288
		),
289
	),
290
	'types' => array(
291
		'1' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
292
		'254' => array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
293
		'255' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
294
	),
295
	'palettes' => array(
296
		'6' => array('showitem' => 'php_tree_stop, editlock'),
297
		'7' => array('showitem' => 'is_siteroot')
211
		'dynamicConfigFile' => 'T3LIB:tbl_pages.php',
298 212
	)
299 213
);
300 214

  
215
// Initialize the additional configuration of the table 'pages':
216
t3lib_div::loadTCA('pages');
217

  
301 218
/**
302 219
 * Table "be_users":
303 220
 * Backend Users for TYPO3.
t3lib/stddb/tbl_pages.php (Revision 0)
1
<?php
2
if (!defined('TYPO3_MODE')) {
3
	die ('Access denied.');
4
}
5

  
6
$TCA['pages'] = array(
7
	'ctrl' => $TCA['pages']['ctrl'],
8
	'interface' => array(
9
		'showRecordFieldList' => 'doktype,title,alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout',
10
		'maxDBListItems' => 30,
11
		'maxSingleDBListItems' => 50,
12
	),
13
	'columns' => array(
14
		'doktype' => array(
15
			'exclude' => 1,
16
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
17
			'config' => array(
18
				'type' => 'select',
19
				'items' => array(
20
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.page', '--div--'),
21
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1', 'i/pages.gif'),
22
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.4', '6', 'i/be_users_section.gif'),
23
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.link', '--div--'),
24
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.2', '4', 'i/pages_shortcut.gif'),
25
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.5', '7', 'i/pages_mountpoint.gif'),
26
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.8', '3', 'i/pages_link.gif'),
27
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.special', '--div--'),
28
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254', 'i/sysf.gif'),
29
					array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255', 'i/recycler.gif'),
30
					array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.7', '199', 'i/spacer_icon.gif'),
31
				),
32
				'default' => '1',
33
				'iconsInOptionTags' => 1,
34
				'noIconsBelowSelect' => 1,
35
			)
36
		),
37
		'title' => array(
38
			'label' => 'LLL:EXT:lang/locallang_tca.php:title',
39
			'config' => array(
40
				'type' => 'input',
41
				'size' => '30',
42
				'max' => '255',
43
				'eval' => 'required'
44
			)
45
		),
46
		'TSconfig' => array(
47
			'exclude' => 1,
48
			'label' => 'TSconfig:',
49
			'config' => array(
50
				'type' => 'text',
51
				'cols' => '40',
52
				'rows' => '5',
53
				'wizards' => array(
54
					'_PADDING' => 4,
55
					'0' => array(
56
						'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
57
						'title' => 'TSconfig QuickReference',
58
						'script' => 'wizard_tsconfig.php?mode=page',
59
						'icon' => 'wizard_tsconfig.gif',
60
						'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
61
					)
62
				),
63
				'softref' => 'TSconfig'
64
			),
65
			'defaultExtras' => 'fixed-font : enable-tab',
66
		),
67
		'php_tree_stop' => array(
68
			'exclude' => 1,
69
			'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
70
			'config' => array(
71
				'type' => 'check'
72
			)
73
		),
74
		'storage_pid' => array(
75
			'exclude' => 1,
76
			'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
77
			'config' => array(
78
				'type' => 'group',
79
				'internal_type' => 'db',
80
				'allowed' => 'pages',
81
				'size' => '1',
82
				'maxitems' => '1',
83
				'minitems' => '0',
84
				'show_thumbs' => '1',
85
				'wizards' => array(
86
					'suggest' => array(
87
						'type' => 'suggest',
88
					),
89
				),
90
			)
91
		),
92
		'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
93
		't3ver_label' => array(
94
			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
95
			'config' => array(
96
				'type' => 'input',
97
				'size' => '30',
98
				'max' => '255',
99
			)
100
		),
101
		'editlock' => array(
102
			'exclude' => 1,
103
			'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
104
			'config' => array(
105
				'type' => 'check'
106
			)
107
		),
108
		'hidden' => array (
109
			'exclude' => 1,
110
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
111
			'config' => array (
112
				'type' => 'check',
113
				'default' => '1'
114
			)
115
		),
116
		'starttime' => array (
117
			'exclude' => 1,
118
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
119
			'config' => array (
120
				'type' => 'input',
121
				'size' => '8',
122
				'max' => '20',
123
				'eval' => 'date',
124
				'checkbox' => '0',
125
				'default' => '0'
126
			)
127
		),
128
		'endtime' => array (
129
			'exclude' => 1,
130
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
131
			'config' => array (
132
				'type' => 'input',
133
				'size' => '8',
134
				'max' => '20',
135
				'eval' => 'date',
136
				'checkbox' => '0',
137
				'default' => '0',
138
				'range' => array (
139
					'upper' => mktime(0,0,0,12,31,2020),
140
				)
141
			)
142
		),
143
		'layout' => array (
144
			'exclude' => 1,
145
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.layout',
146
			'config' => array (
147
				'type' => 'select',
148
				'items' => array (
149
					array('LLL:EXT:lang/locallang_general.xml:LGL.normal', '0'),
150
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.1', '1'),
151
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.2', '2'),
152
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.3', '3')
153
				),
154
				'default' => '0'
155
			)
156
		),
157
		'url_scheme' => array (
158
			'exclude' => 1,
159
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url_scheme',
160
			'config' => array (
161
				'type' => 'select',
162
				'items' => array (
163
					array('', 0),
164
					array('LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.http', 1),
165
					array('LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.https', 2)
166
				),
167
				'default' => 0
168
			)
169
		),
170
		'fe_group' => array (
171
			'exclude' => 1,
172
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
173
			'config' => array (
174
				'type' => 'select',
175
				'size' => 5,
176
				'maxitems' => 20,
177
				'items' => array (
178
					array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
179
					array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
180
					array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
181
				),
182
				'exclusiveKeys' => '-1,-2',
183
				'foreign_table' => 'fe_groups',
184
				'foreign_table_where' => 'ORDER BY fe_groups.title',
185
			)
186
		),
187
		'extendToSubpages' => array (
188
			'exclude' => 1,
189
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.extendToSubpages',
190
			'config' => array (
191
				'type' => 'check'
192
			)
193
		),
194
		'nav_title' => array (
195
			'exclude' => 1,
196
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_title',
197
			'config' => array (
198
				'type' => 'input',
199
				'size' => '30',
200
				'max' => '255',
201
				'checkbox' => '',
202
				'eval' => 'trim'
203
			)
204
		),
205
		'nav_hide' => array (
206
			'exclude' => 1,
207
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_hide',
208
			'config' => array (
209
				'type' => 'check'
210
			)
211
		),
212
		'subtitle' => array (
213
			'exclude' => 1,
214
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.subtitle',
215
			'config' => array (
216
				'type' => 'input',
217
				'size' => '30',
218
				'max' => '255',
219
				'eval' => ''
220
			)
221
		),
222
		'target' => array (
223
			'exclude' => 1,
224
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.target',
225
			'config' => array (
226
				'type' => 'input',
227
				'size' => '20',
228
				'max' => '80',
229
				'eval' => 'trim',
230
				'checkbox' => ''
231
			)
232
		),
233
		'alias' => array (
234
			'displayCond' => 'VERSION:IS:false',
235
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.alias',
236
			'config' => array (
237
				'type' => 'input',
238
				'size' => '10',
239
				'max' => '32',
240
				'eval' => 'nospace,alphanum_x,lower,unique',
241
				'softref' => 'notify'
242
			)
243
		),
244
		'url' => array (
245
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
246
			'config' => array (
247
				'type' => 'input',
248
				'size' => '25',
249
				'max' => '255',
250
				'eval' => 'trim,required',
251
				'softref' => 'url'
252
			)
253
		),
254
		'urltype' => array (
255
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type',
256
			'config' => array (
257
				'type' => 'select',
258
				'items' => array (
259
					array('', '0'),
260
					array('http://', '1'),
261
					array('https://', '4'),
262
					array('ftp://', '2'),
263
					array('mailto:', '3')
264
				),
265
				'default' => '1'
266
			)
267
		),
268
		'lastUpdated' => array (
269
			'exclude' => 1,
270
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.lastUpdated',
271
			'config' => array (
272
				'type' => 'input',
273
				'size' => '12',
274
				'max' => '20',
275
				'eval' => 'datetime',
276
				'checkbox' => '0',
277
				'default' => '0'
278
			)
279
		),
280
		'newUntil' => array (
281
			'exclude' => 1,
282
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.newUntil',
283
			'config' => array (
284
				'type' => 'input',
285
				'size' => '8',
286
				'max' => '20',
287
				'eval' => 'date',
288
				'checkbox' => '0',
289
				'default' => '0'
290
			)
291
		),
292
		'cache_timeout' => array (
293
			'exclude' => 1,
294
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout',
295
			'config' => array (
296
				'type' => 'select',
297
				'items' => array (
298
					array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
299
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.1', 60),
300
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.2', 300),
301
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.3', 900),
302
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.4', 1800),
303
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.5', 3600),
304
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.6', 14400),
305
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.7', 86400),
306
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.8', 172800),
307
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.9', 604800),
308
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.10', 2678400)
309
				),
310
				'default' => '0'
311
			)
312
		),
313
		'no_cache' => array (
314
			'exclude' => 1,
315
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache',
316
			'config' => array (
317
				'type' => 'check'
318
			)
319
		),
320
		'no_search' => array (
321
			'exclude' => 1,
322
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search',
323
			'config' => array (
324
				'type' => 'check'
325
			)
326
		),
327
		'shortcut' => array (
328
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
329
			'config' => array (
330
				'type' => 'group',
331
				'internal_type' => 'db',
332
				'allowed' => 'pages',
333
				'size' => '3',
334
				'maxitems' => '1',
335
				'minitems' => '0',
336
				'show_thumbs' => '1',
337
				'wizards' => array(
338
					'suggest' => array(
339
						'type' => 'suggest',
340
					),
341
				),
342
			),
343
		),
344
		'shortcut_mode' => array (
345
			'exclude' => 1,
346
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
347
			'config' => array (
348
				'type' => 'select',
349
				'items' => array (
350
					array('', 0),
351
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1', 1),
352
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2', 2),
353
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.3', 3),
354
				),
355
				'default' => '0'
356
			)
357
		),
358
		'content_from_pid' => array (
359
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid',
360
			'config' => array (
361
				'type' => 'group',
362
				'internal_type' => 'db',
363
				'allowed' => 'pages',
364
				'size' => '1',
365
				'maxitems' => '1',
366
				'minitems' => '0',
367
				'show_thumbs' => '1',
368
				'wizards' => array(
369
					'suggest' => array(
370
						'type' => 'suggest',
371
					),
372
				),
373
			),
374
		),
375
		'mount_pid' => array (
376
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid',
377
			'config' => array (
378
				'type' => 'group',
379
				'internal_type' => 'db',
380
				'allowed' => 'pages',
381
				'size' => '1',
382
				'maxitems' => '1',
383
				'minitems' => '0',
384
				'show_thumbs' => '1',
385
				'wizards' => array(
386
					'suggest' => array(
387
						'type' => 'suggest',
388
					),
389
				),
390
			),
391
		),
392
		'keywords' => array (
393
			'exclude' => 1,
394
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.keywords',
395
			'config' => array (
396
				'type' => 'text',
397
				'cols' => '40',
398
				'rows' => '3'
399
			)
400
		),
401
		'description' => array (
402
			'exclude' => 1,
403
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
404
			'config' => array (
405
				'type' => 'text',
406
				'cols' => '40',
407
				'rows' => '3'
408
			)
409
		),
410
		'abstract' => array (
411
			'exclude' => 1,
412
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.abstract',
413
			'config' => array (
414
				'type' => 'text',
415
				'cols' => '40',
416
				'rows' => '3'
417
			)
418
		),
419
		'author' => array (
420
			'exclude' => 1,
421
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.author',
422
			'config' => array (
423
				'type' => 'input',
424
				'size' => '20',
425
				'eval' => 'trim',
426
				'max' => '80'
427
			)
428
		),
429
		'author_email' => array (
430
			'exclude' => 1,
431
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
432
			'config' => array (
433
				'type' => 'input',
434
				'size' => '20',
435
				'eval' => 'trim',
436
				'max' => '80',
437
				'softref' => 'email[subst]'
438
			)
439
		),
440
		'media' => array (
441
			'exclude' => 1,
442
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
443
			'config' => array (
444
				'type' => 'group',
445
				'internal_type' => 'file',
446
				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
447
				'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
448
				'uploadfolder' => 'uploads/media',
449
				'show_thumbs' => '1',
450
				'size' => '3',
451
				'maxitems' => '5',
452
				'minitems' => '0'
453
			)
454
		),
455
		'is_siteroot' => array (
456
			'exclude' => 1,
457
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.is_siteroot',
458
			'config' => array (
459
				'type' => 'check'
460
			)
461
		),
462
		'mount_pid_ol' => array (
463
			'exclude' => 1,
464
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol',
465
			'config' => array (
466
				'type' => 'check'
467
			)
468
		),
469
		'module' => array (
470
			'exclude' => 1,
471
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.module',
472
			'config' => array (
473
				'type' => 'select',
474
				'items' => array (
475
					array('', '', ''),
476
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.1', 'shop', 'i/modules_shop.gif'),
477
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.2', 'board', 'i/modules_board.gif'),
478
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.3', 'news', 'i/modules_news.gif'),
479
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.4', 'fe_users', 'i/fe_users.gif'),
480
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.6', 'approve', 'state_checked.png')
481
				),
482
				'default' => '',
483
				'iconsInOptionTags' => 1,
484
				'noIconsBelowSelect' => 1,
485
			)
486
		),
487
		'fe_login_mode' => array (
488
			'exclude' => 1,
489
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode',
490
			'config' => array (
491
				'type' => 'select',
492
				'items' => array (
493
					array('', 0),
494
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableAll', 1),
495
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableGroups', 3),
496
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enableAgain', 2),
497
				)
498
			)
499
		),
500
		'l18n_cfg' => array (
501
			'exclude' => 1,
502
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg',
503
			'config' => array (
504
				'type' => 'check',
505
				'items' => array (
506
					array('LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.1', ''),
507
					array($GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] ? 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2a' : 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2', ''),
508
				),
509
			)
510
		),
511
	),
512
	'types' => array(
513
			// normal
514
		'1' => array('showitem' =>
515
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
516
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
517
				--palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description,
518
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
519
				media,
520
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
521
				TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
522
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
523
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
524
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
525
		'),
526
			// external URL
527
		'3' => array('showitem' =>
528
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
529
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url,
530
				url;;;;3-3-3, urltype,
531
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
532
				media,
533
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
534
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
535
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
536
				starttime, endtime, fe_group, extendToSubpages,
537
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
538
		'),
539
			// shortcut
540
		'4' => array('showitem' =>
541
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
542
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut,
543
				shortcut;;;;3-3-3, shortcut_mode,
544
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
545
				media,
546
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
547
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
548
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
549
				starttime, endtime, fe_group, extendToSubpages,
550
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
551
		'),
552
			// not in menu
553
		'5' => array('showitem' =>
554
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
555
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
556
				media,
557
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
558
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
559
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
560
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
561
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
562
		'),
563
			// mount page
564
		'7' => array('showitem' =>
565
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
566
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.mount,
567
				mount_pid;;;;3-3-3, mount_pid_ol,
568
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
569
				media,
570
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
571
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
572
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
573
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
574
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
575
		'),
576
			// spacer
577
		'199' => array('showitem' =>
578
				'doktype;;2;;1-1-1, hidden, title,
579
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
580
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
581
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
582
		'),
583
			// sysfolder
584
		'254' => array('showitem' =>
585
				'doktype;;2;;1-1-1, hidden, title;LLL:EXT:lang/locallang_general.xml:LGL.title,
586
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
587
				media,
588
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
589
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module,
590
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
591
		'),
592
			// trash
593
		'255' => array('showitem' =>
594
				'doktype;;2;;1-1-1, hidden, title,
595
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
596
		'),
597
	),
598
	'palettes' => array(
599
		'1' => array('showitem' => 'starttime, endtime, extendToSubpages'),
600
		'2' => array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
601
		'3' => array('showitem' => 'alias, target, no_cache, cache_timeout, url_scheme'),
602
		'5' => array('showitem' => 'author, author_email', 'canNotCollapse' => 1),
603
		'6' => array('showitem' => 'php_tree_stop, editlock'),
604
		'7' => array('showitem' => 'is_siteroot'),
605
	)
606
);
607

  
608

  
609
// if the compat version is less than 4.2, pagetype 2 ("Advanced")
610
// and pagetype 5 ("Not in menu") are added to TCA.
611
if (!t3lib_div::compat_version('4.2')) {
612
		// Merging in CMS doktypes
613
	array_splice(
614
		$TCA['pages']['columns']['doktype']['config']['items'],
615
		2,
616
		0,
617
		array(
618
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.0', '2', 'i/pages.gif'),
619
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.3', '5', 'i/pages_notinmenu.gif'),
620
		)
621
	);
622
		// setting the doktype 1 ("Standard") to show less fields
623
	$TCA['pages']['types'][1] = array(
624
			// standard
625
		'showitem' =>
626
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
627
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
628
				starttime, endtime, fe_group, extendToSubpages,
629
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
630
				TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg,
631
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
632
	');
633
		// adding doktype 2 ("Advanced")
634
	$TCA['pages']['types'][2] = array(
635
		'showitem' =>
636
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
637
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
638
				abstract;;5;;3-3-3, keywords, description,
639
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
640
				media,
641
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
642
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
643
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
644
				TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
645
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
646
	');
647
}
648

  
649
?>
t3lib/stddb/tables.sql (Arbeitskopie)
209 209
  is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
210 210
  php_tree_stop tinyint(4) DEFAULT '0' NOT NULL,
211 211
  tx_impexp_origuid int(11) DEFAULT '0' NOT NULL,
212
  url varchar(255) DEFAULT '' NOT NULL,
213
  starttime int(11) unsigned DEFAULT '0' NOT NULL,
214
  endtime int(11) unsigned DEFAULT '0' NOT NULL,
215
  urltype tinyint(4) unsigned DEFAULT '0' NOT NULL,
216
  shortcut int(10) unsigned DEFAULT '0' NOT NULL,
217
  shortcut_mode int(10) unsigned DEFAULT '0' NOT NULL,
218
  no_cache int(10) unsigned DEFAULT '0' NOT NULL,
219
  fe_group varchar(100) DEFAULT '0' NOT NULL,
220
  subtitle varchar(255) DEFAULT '' NOT NULL,
221
  layout tinyint(3) unsigned DEFAULT '0' NOT NULL,
222
  url_scheme tinyint(3) unsigned DEFAULT '0' NOT NULL,
223
  target varchar(80) DEFAULT '' NOT NULL,
224
  media text,
225
  lastUpdated int(10) unsigned DEFAULT '0' NOT NULL,
226
  keywords text,
227
  cache_timeout int(10) unsigned DEFAULT '0' NOT NULL,
228
  newUntil int(10) unsigned DEFAULT '0' NOT NULL,
229
  description text,
230
  no_search tinyint(3) unsigned DEFAULT '0' NOT NULL,
231
  SYS_LASTCHANGED int(10) unsigned DEFAULT '0' NOT NULL,
232
  abstract text,
233
  module varchar(10) DEFAULT '' NOT NULL,
234
  extendToSubpages tinyint(3) unsigned DEFAULT '0' NOT NULL,
235
  author varchar(255) DEFAULT '' NOT NULL,
236
  author_email varchar(80) DEFAULT '' NOT NULL,
237
  nav_title varchar(255) DEFAULT '' NOT NULL,
238
  nav_hide tinyint(4) DEFAULT '0' NOT NULL,
239
  content_from_pid int(10) unsigned DEFAULT '0' NOT NULL,
240
  mount_pid int(10) unsigned DEFAULT '0' NOT NULL,
241
  mount_pid_ol tinyint(4) DEFAULT '0' NOT NULL,
242
  alias varchar(32) DEFAULT '' NOT NULL,
243
  l18n_cfg tinyint(4) DEFAULT '0' NOT NULL,
244
  fe_login_mode tinyint(4) DEFAULT '0' NOT NULL,
212 245
  PRIMARY KEY (uid),
213 246
  KEY t3ver_oid (t3ver_oid,t3ver_wsid),
214
  KEY parent (pid,sorting,deleted,hidden)
247
  KEY parent (pid,sorting,deleted,hidden),
248
  KEY alias (alias)
215 249
);
216 250

  
217 251
#
typo3/sysext/cms/ext_tables.php (Arbeitskopie)
23 23
}
24 24

  
25 25

  
26
// ******************************************************************
27
// Extend 'pages'-table
28
// ******************************************************************
29

  
30
		// Adding pages_types:
31
		// t3lib_div::array_merge() MUST be used!
32
	$PAGES_TYPES = t3lib_div::array_merge(array(
33
		'3' => array(
34
		),
35
		'4' => array(
36
		),
37
		'5' => array(
38
		),
39
		'6' => array(
40
			'type' => 'web',
41
			'allowedTables' => '*'
42
		),
43
		'7' => array(
44
		),
45
		'199' => array(		// TypoScript: Limit is 200. When the doktype is 200 or above, the page WILL NOT be regarded as a 'page' by TypoScript. Rather is it a system-type page
46
			'type' => 'sys',
47
		)
48
	),$PAGES_TYPES);
49

  
50 26
	// Add allowed records to pages:
51 27
	t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain');
52 28

  
53
	// Merging in CMS doktypes:
54
	array_splice(
55
		$TCA['pages']['columns']['doktype']['config']['items'],
56
		1,
57
		0,
58
		array(
59
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.4', '6', 'i/be_users_section.gif'),
60
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.link', '--div--'),
61
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.2', '4', 'i/pages_shortcut.gif'),
62
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.5', '7', 'i/pages_mountpoint.gif'),
63
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.8', '3', 'i/pages_link.gif'),
64
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.special', '--div--')
65
		)
66
	);
67
	array_splice(
68
		$TCA['pages']['columns']['doktype']['config']['items'],
69
		10,
70
		0,
71
		array(
72
			array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.7', '199', 'i/spacer_icon.gif')
73
		)
74
	);
75
	array_unshift(
76
		$TCA['pages']['columns']['doktype']['config']['items'],
77
		array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.page', '--div--')
78
	);
79 29

  
80
	// Setting enablecolumns:
81
	$TCA['pages']['ctrl']['enablecolumns'] = array (
82
		'disabled' => 'hidden',
83
		'starttime' => 'starttime',
84
		'endtime' => 'endtime',
85
		'fe_group' => 'fe_group',
86
	);
87

  
88
	// Enable Tabs
89
	$TCA['pages']['ctrl']['dividers2tabs'] = 1;
90

  
91
	// Adding default value columns:
92
	$TCA['pages']['ctrl']['useColumnsForDefaultValues'].=',fe_group,hidden';
93
	$TCA['pages']['ctrl']['transForeignTable'] = 'pages_language_overlay';
94

  
95
	// Adding new columns:
96
	$TCA['pages']['columns'] = array_merge($TCA['pages']['columns'],array(
97
		'hidden' => array (
98
			'exclude' => 1,
99
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
100
			'config' => array (
101
				'type' => 'check',
102
				'default' => '1'
103
			)
104
		),
105
		'starttime' => array (
106
			'exclude' => 1,
107
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
108
			'config' => array (
109
				'type' => 'input',
110
				'size' => '8',
111
				'max' => '20',
112
				'eval' => 'date',
113
				'checkbox' => '0',
114
				'default' => '0'
115
			)
116
		),
117
		'endtime' => array (
118
			'exclude' => 1,
119
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
120
			'config' => array (
121
				'type' => 'input',
122
				'size' => '8',
123
				'max' => '20',
124
				'eval' => 'date',
125
				'checkbox' => '0',
126
				'default' => '0',
127
				'range' => array (
128
					'upper' => mktime(0,0,0,12,31,2020),
129
				)
130
			)
131
		),
132
		'layout' => array (
133
			'exclude' => 1,
134
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.layout',
135
			'config' => array (
136
				'type' => 'select',
137
				'items' => array (
138
					array('LLL:EXT:lang/locallang_general.xml:LGL.normal', '0'),
139
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.1', '1'),
140
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.2', '2'),
141
					array('LLL:EXT:cms/locallang_tca.xml:pages.layout.I.3', '3')
142
				),
143
				'default' => '0'
144
			)
145
		),
146
		'url_scheme' => array (
147
			'exclude' => 1,
148
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url_scheme',
149
			'config' => array (
150
				'type' => 'select',
151
				'items' => array (
152
					array('', 0),
153
					array('LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.http', 1),
154
					array('LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.https', 2)
155
				),
156
				'default' => 0
157
			)
158
		),
159
		'fe_group' => array (
160
			'exclude' => 1,
161
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
162
			'config' => array (
163
				'type' => 'select',
164
				'size' => 5,
165
				'maxitems' => 20,
166
				'items' => array (
167
					array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
168
					array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
169
					array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
170
				),
171
				'exclusiveKeys' => '-1,-2',
172
				'foreign_table' => 'fe_groups',
173
				'foreign_table_where' => 'ORDER BY fe_groups.title',
174
			)
175
		),
176
		'extendToSubpages' => array (
177
			'exclude' => 1,
178
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.extendToSubpages',
179
			'config' => array (
180
				'type' => 'check'
181
			)
182
		),
183
		'nav_title' => array (
184
			'exclude' => 1,
185
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_title',
186
			'config' => array (
187
				'type' => 'input',
188
				'size' => '30',
189
				'max' => '255',
190
				'checkbox' => '',
191
				'eval' => 'trim'
192
			)
193
		),
194
		'nav_hide' => array (
195
			'exclude' => 1,
196
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_hide',
197
			'config' => array (
198
				'type' => 'check'
199
			)
200
		),
201
		'subtitle' => array (
202
			'exclude' => 1,
203
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.subtitle',
204
			'config' => array (
205
				'type' => 'input',
206
				'size' => '30',
207
				'max' => '255',
208
				'eval' => ''
209
			)
210
		),
211
		'target' => array (
212
			'exclude' => 1,
213
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.target',
214
			'config' => array (
215
				'type' => 'input',
216
				'size' => '20',
217
				'max' => '80',
218
				'eval' => 'trim',
219
				'checkbox' => ''
220
			)
221
		),
222
		'alias' => array (
223
			'displayCond' => 'VERSION:IS:false',
224
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.alias',
225
			'config' => array (
226
				'type' => 'input',
227
				'size' => '10',
228
				'max' => '32',
229
				'eval' => 'nospace,alphanum_x,lower,unique',
230
				'softref' => 'notify'
231
			)
232
		),
233
		'url' => array (
234
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
235
			'config' => array (
236
				'type' => 'input',
237
				'size' => '25',
238
				'max' => '255',
239
				'eval' => 'trim,required',
240
				'softref' => 'url'
241
			)
242
		),
243
		'urltype' => array (
244
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type',
245
			'config' => array (
246
				'type' => 'select',
247
				'items' => array (
248
					array('', '0'),
249
					array('http://', '1'),
250
					array('https://', '4'),
251
					array('ftp://', '2'),
252
					array('mailto:', '3')
253
				),
254
				'default' => '1'
255
			)
256
		),
257
		'lastUpdated' => array (
258
			'exclude' => 1,
259
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.lastUpdated',
260
			'config' => array (
261
				'type' => 'input',
262
				'size' => '12',
263
				'max' => '20',
264
				'eval' => 'datetime',
265
				'checkbox' => '0',
266
				'default' => '0'
267
			)
268
		),
269
		'newUntil' => array (
270
			'exclude' => 1,
271
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.newUntil',
272
			'config' => array (
273
				'type' => 'input',
274
				'size' => '8',
275
				'max' => '20',
276
				'eval' => 'date',
277
				'checkbox' => '0',
278
				'default' => '0'
279
			)
280
		),
281
		'cache_timeout' => array (
282
			'exclude' => 1,
283
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout',
284
			'config' => array (
285
				'type' => 'select',
286
				'items' => array (
287
					array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
288
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.1', 60),
289
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.2', 300),
290
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.3', 900),
291
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.4', 1800),
292
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.5', 3600),
293
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.6', 14400),
294
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.7', 86400),
295
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.8', 172800),
296
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.9', 604800),
297
					array('LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.10', 2678400)
298
				),
299
				'default' => '0'
300
			)
301
		),
302
		'no_cache' => array (
303
			'exclude' => 1,
304
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache',
305
			'config' => array (
306
				'type' => 'check'
307
			)
308
		),
309
		'no_search' => array (
310
			'exclude' => 1,
311
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search',
312
			'config' => array (
313
				'type' => 'check'
314
			)
315
		),
316
		'shortcut' => array (
317
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
318
			'config' => array (
319
				'type' => 'group',
320
				'internal_type' => 'db',
321
				'allowed' => 'pages',
322
				'size' => '3',
323
				'maxitems' => '1',
324
				'minitems' => '0',
325
				'show_thumbs' => '1',
326
				'wizards' => array(
327
					'suggest' => array(
328
						'type' => 'suggest',
329
					),
330
				),
331
			),
332
		),
333
		'shortcut_mode' => array (
334
			'exclude' => 1,
335
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
336
			'config' => array (
337
				'type' => 'select',
338
				'items' => array (
339
					array('', 0),
340
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1', 1),
341
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2', 2),
342
					array('LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.3', 3),
343
				),
344
				'default' => '0'
345
			)
346
		),
347
		'content_from_pid' => array (
348
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid',
349
			'config' => array (
350
				'type' => 'group',
351
				'internal_type' => 'db',
352
				'allowed' => 'pages',
353
				'size' => '1',
354
				'maxitems' => '1',
355
				'minitems' => '0',
356
				'show_thumbs' => '1',
357
				'wizards' => array(
358
					'suggest' => array(
359
						'type' => 'suggest',
360
					),
361
				),
362
			),
363
		),
364
		'mount_pid' => array (
365
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid',
366
			'config' => array (
367
				'type' => 'group',
368
				'internal_type' => 'db',
369
				'allowed' => 'pages',
370
				'size' => '1',
371
				'maxitems' => '1',
372
				'minitems' => '0',
373
				'show_thumbs' => '1',
374
				'wizards' => array(
375
					'suggest' => array(
376
						'type' => 'suggest',
377
					),
378
				),
379
			),
380
		),
381
		'keywords' => array (
382
			'exclude' => 1,
383
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.keywords',
384
			'config' => array (
385
				'type' => 'text',
386
				'cols' => '40',
387
				'rows' => '3'
388
			)
389
		),
390
		'description' => array (
391
			'exclude' => 1,
392
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
393
			'config' => array (
394
				'type' => 'text',
395
				'cols' => '40',
396
				'rows' => '3'
397
			)
398
		),
399
		'abstract' => array (
400
			'exclude' => 1,
401
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.abstract',
402
			'config' => array (
403
				'type' => 'text',
404
				'cols' => '40',
405
				'rows' => '3'
406
			)
407
		),
408
		'author' => array (
409
			'exclude' => 1,
410
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.author',
411
			'config' => array (
412
				'type' => 'input',
413
				'size' => '20',
414
				'eval' => 'trim',
415
				'max' => '80'
416
			)
417
		),
418
		'author_email' => array (
419
			'exclude' => 1,
420
			'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
421
			'config' => array (
422
				'type' => 'input',
423
				'size' => '20',
424
				'eval' => 'trim',
425
				'max' => '80',
426
				'softref' => 'email[subst]'
427
			)
428
		),
429
		'media' => array (
430
			'exclude' => 1,
431
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
432
			'config' => array (
433
				'type' => 'group',
434
				'internal_type' => 'file',
435
				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
436
				'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
437
				'uploadfolder' => 'uploads/media',
438
				'show_thumbs' => '1',
439
				'size' => '3',
440
				'maxitems' => '5',
441
				'minitems' => '0'
442
			)
443
		),
444
		'is_siteroot' => array (
445
			'exclude' => 1,
446
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.is_siteroot',
447
			'config' => array (
448
				'type' => 'check'
449
			)
450
		),
451
		'mount_pid_ol' => array (
452
			'exclude' => 1,
453
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol',
454
			'config' => array (
455
				'type' => 'check'
456
			)
457
		),
458
		'module' => array (
459
			'exclude' => 1,
460
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.module',
461
			'config' => array (
462
				'type' => 'select',
463
				'items' => array (
464
					array('', '', ''),
465
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.1', 'shop', 'i/modules_shop.gif'),
466
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.2', 'board', 'i/modules_board.gif'),
467
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.3', 'news', 'i/modules_news.gif'),
468
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.4', 'fe_users', 'i/fe_users.gif'),
469
					array('LLL:EXT:cms/locallang_tca.xml:pages.module.I.6', 'approve', 'state_checked.png')
470
				),
471
				'default' => '',
472
				'iconsInOptionTags' => 1,
473
				'noIconsBelowSelect' => 1,
474
			)
475
		),
476
		'fe_login_mode' => array (
477
			'exclude' => 1,
478
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode',
479
			'config' => array (
480
				'type' => 'select',
481
				'items' => array (
482
					array('', 0),
483
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableAll', 1),
484
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableGroups', 3),
485
					array('LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enableAgain', 2),
486
				)
487
			)
488
		),
489
		'l18n_cfg' => array (
490
			'exclude' => 1,
491
			'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg',
492
			'config' => array (
493
				'type' => 'check',
494
				'items' => array (
495
					array('LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.1', ''),
496
					array($GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] ? 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2a' : 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2', ''),
497
				),
498
			)
499
		),
500
	));
501

  
502
		// Add columns to info-display list.
503
	$TCA['pages']['interface']['showRecordFieldList'].=',alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout';
504

  
505

  
506
		// Totally overriding all type-settings:
507
	$TCA['pages']['types'] = array (
508
			// normal
509
		'1' => array('showitem' =>
510
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
511
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
512
				--palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description,
513
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
514
				media,
515
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
516
				TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
517
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
518
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
519
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
520
		'),
521
			// external URL
522
		'3' => array('showitem' =>
523
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
524
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url,
525
				url;;;;3-3-3, urltype,
526
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
527
				media,
528
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
529
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
530
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
531
				starttime, endtime, fe_group, extendToSubpages,
532
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
533
		'),
534
			// shortcut
535
		'4' => array('showitem' =>
536
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
537
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut,
538
				shortcut;;;;3-3-3, shortcut_mode,
539
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
540
				media,
541
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
542
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg,
543
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
544
				starttime, endtime, fe_group, extendToSubpages,
545
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
546
		'),
547
			// not in menu
548
		'5' => array('showitem' =>
549
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
550
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
551
				media,
552
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
553
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
554
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
555
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
556
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
557
		'),
558
			// mount page
559
		'7' => array('showitem' =>
560
				'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
561
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.mount,
562
				mount_pid;;;;3-3-3, mount_pid_ol,
563
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
564
				media,
565
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
566
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid,
567
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
568
				starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
569
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
570
		'),
571
			// spacer
572
		'199' => array('showitem' =>
573
				'doktype;;2;;1-1-1, hidden, title,
574
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
575
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
576
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
577
		'),
578
			// sysfolder
579
		'254' => array('showitem' =>
580
				'doktype;;2;;1-1-1, hidden, title;LLL:EXT:lang/locallang_general.xml:LGL.title,
581
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
582
				media,
583
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
584
				TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module,
585
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
586
		'),
587
			// trash
588
		'255' => array('showitem' =>
589
				'doktype;;2;;1-1-1, hidden, title,
590
			--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
591
		')
592
	);
593

  
594
		// Merging palette settings:
595
		// t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
596
	$TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],array(
597
		'1' => array('showitem' => 'starttime, endtime, extendToSubpages'),
598
		'2' => array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
599
		'3' => array('showitem' => 'alias, target, no_cache, cache_timeout, url_scheme'),
600
		'5' => array('showitem' => 'author, author_email', 'canNotCollapse' => 1)
601
	));
602

  
603

  
604
	// if the compat version is less than 4.2, pagetype 2 ("Advanced")
605
	// and pagetype 5 ("Not in menu") are added to TCA.
606
	if (!t3lib_div::compat_version('4.2')) {
607
			// Merging in CMS doktypes
608
		array_splice(
609
			$TCA['pages']['columns']['doktype']['config']['items'],
610
			2,
611
			0,
612
			array(
613
				array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.0', '2', 'i/pages.gif'),
614
				array('LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.3', '5', 'i/pages_notinmenu.gif'),
615
			)
616
		);
617
			// setting the doktype 1 ("Standard") to show less fields
618
		$TCA['pages']['types'][1] = array(
619
				// standard
620
			'showitem' =>
621
					'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
622
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
623
					starttime, endtime, fe_group, extendToSubpages,
624
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
625
					TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg,
626
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
627
		');
628
			// adding doktype 2 ("Advanced")
629
		$TCA['pages']['types'][2] = array(
630
			'showitem' =>
631
					'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
632
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
633
					abstract;;5;;3-3-3, keywords, description,
634
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
635
					media,
636
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
637
					starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
638
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
639
					TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid,
640
				--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
641
		');
... This diff was truncated because it exceeds the maximum size that can be displayed.