TYPO3 CMS  TYPO3_6-2
ext_tables.php
Go to the documentation of this file.
1 <?php
2 if (!defined('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 
14 $GLOBALS['PAGES_TYPES'] = array(
15  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
16  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
17  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
18  'type' => 'web',
19  'allowedTables' => '*'
20  ),
21  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
22  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
23  'type' => 'sys'
24  ),
25  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
26  // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
27  // In CMS context it's NOT a viewable page. Can contain any element.
28  'type' => 'sys',
29  'allowedTables' => '*'
30  ),
31  (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
32  // Doktype 255 is a recycle-bin.
33  'type' => 'sys',
34  'allowedTables' => '*'
35  ),
36  'default' => array(
37  'type' => 'web',
38  'allowedTables' => 'pages',
39  'onlyAllowedTables' => '0'
40  ),
41 );
42 
44 
46 $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Driver\\DriverRegistry');
47 $registry->addDriversToTCA();
48 
51 
60 $GLOBALS['TBE_MODULES'] = array(
61  'web' => 'list',
62  'file' => '',
63  'user' => '',
64  'tools' => '',
65  'system' => '',
66  'help' => ''
67 );
68 
69 
70 // Register the page tree core navigation component
72 
73 
80 $GLOBALS['TBE_STYLES'] = array(
81  'colorschemes' => array(
82  '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
83  ),
84  'borderschemes' => array(
85  '0' => array('border:solid 1px black;', 5)
86  )
87 );
88 
89 
95 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
96 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
97 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
98 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
99 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
100 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
101 // General Core
102 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
103 // Extension manager
104 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xlf');
105 // Web > Info
106 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
107 // Web > Func
108 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
109 // Labels for TYPO3 4.5 and greater.
110 // These labels override the ones set above, while still falling back to the original labels
111 // if no translation is available.
112 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xlf'][] = 'EXT:lang/4.5/locallang_csh_pages.xlf';
113 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xlf'][] = 'EXT:lang/4.5/locallang_csh_corebe.xlf';
114 
115 
119 $GLOBALS['FILEICONS'] = array(
120  'txt' => 'txt.gif',
121  'pdf' => 'pdf.gif',
122  'doc' => 'doc.gif',
123  'ai' => 'ai.gif',
124  'bmp' => 'bmp.gif',
125  'tif' => 'tif.gif',
126  'htm' => 'htm.gif',
127  'html' => 'html.gif',
128  'pcd' => 'pcd.gif',
129  'gif' => 'gif.gif',
130  'jpg' => 'jpg.gif',
131  'jpeg' => 'jpg.gif',
132  'mpg' => 'mpg.gif',
133  'mpeg' => 'mpeg.gif',
134  'exe' => 'exe.gif',
135  'com' => 'exe.gif',
136  'zip' => 'zip.gif',
137  'tgz' => 'zip.gif',
138  'gz' => 'zip.gif',
139  'php3' => 'php3.gif',
140  'php4' => 'php3.gif',
141  'php5' => 'php3.gif',
142  'php6' => 'php3.gif',
143  'php' => 'php3.gif',
144  'ppt' => 'ppt.gif',
145  'ttf' => 'ttf.gif',
146  'pcx' => 'pcx.gif',
147  'png' => 'png.gif',
148  'tga' => 'tga.gif',
149  'class' => 'java.gif',
150  'sxc' => 'sxc.gif',
151  'sxw' => 'sxw.gif',
152  'xls' => 'xls.gif',
153  'swf' => 'swf.gif',
154  'swa' => 'flash.gif',
155  'dcr' => 'flash.gif',
156  'wav' => 'wav.gif',
157  'mp3' => 'mp3.gif',
158  'avi' => 'avi.gif',
159  'au' => 'au.gif',
160  'mov' => 'mov.gif',
161  '3ds' => '3ds.gif',
162  'csv' => 'csv.gif',
163  'ico' => 'ico.gif',
164  'max' => 'max.gif',
165  'ps' => 'ps.gif',
166  'tmpl' => 'tmpl.gif',
167  'fh3' => 'fh3.gif',
168  'inc' => 'inc.gif',
169  'mid' => 'mid.gif',
170  'psd' => 'psd.gif',
171  'xml' => 'xml.gif',
172  'rtf' => 'rtf.gif',
173  't3x' => 't3x.gif',
174  't3d' => 't3d.gif',
175  'cdr' => 'cdr.gif',
176  'dtd' => 'dtd.gif',
177  'sgml' => 'sgml.gif',
178  'ani' => 'ani.gif',
179  'css' => 'css.gif',
180  'eps' => 'eps.gif',
181  'js' => 'js.gif',
182  'wrl' => 'wrl.gif',
183  'default' => 'default.gif'
184 );
185 
186 
190 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
191  'actions-document-close',
192  'actions-document-duplicates-select',
193  'actions-document-edit-access',
194  'actions-document-export-csv',
195  'actions-document-export-t3d',
196  'actions-document-history-open',
197  'actions-document-import-t3d',
198  'actions-document-info',
199  'actions-document-localize',
200  'actions-document-move',
201  'actions-document-new',
202  'actions-document-open',
203  'actions-document-open-read-only',
204  'actions-document-paste-after',
205  'actions-document-paste-into',
206  'actions-document-save',
207  'actions-document-save-close',
208  'actions-document-save-new',
209  'actions-document-save-view',
210  'actions-document-select',
211  'actions-document-synchronize',
212  'actions-document-view',
213  'actions-edit-add',
214  'actions-edit-copy',
215  'actions-edit-copy-release',
216  'actions-edit-cut',
217  'actions-edit-cut-release',
218  'actions-edit-delete',
219  'actions-edit-download',
220  'actions-edit-hide',
221  'actions-edit-insert-default',
222  'actions-edit-localize-status-high',
223  'actions-edit-localize-status-low',
224  'actions-edit-merge-localization',
225  'actions-edit-pick-date',
226  'actions-edit-rename',
227  'actions-edit-restore',
228  'actions-edit-undelete-edit',
229  'actions-edit-undo',
230  'actions-edit-unhide',
231  'actions-edit-upload',
232  'actions-input-clear',
233  'actions-insert-record',
234  'actions-insert-reference',
235  'actions-markstate',
236  'actions-message-error-close',
237  'actions-message-information-close',
238  'actions-message-notice-close',
239  'actions-message-ok-close',
240  'actions-message-warning-close',
241  'actions-move-down',
242  'actions-move-left',
243  'actions-move-move',
244  'actions-move-right',
245  'actions-move-to-bottom',
246  'actions-move-to-top',
247  'actions-move-up',
248  'actions-page-move',
249  'actions-page-new',
250  'actions-page-open',
251  'actions-selection-delete',
252  'actions-system-backend-user-emulate',
253  'actions-system-backend-user-switch',
254  'actions-system-cache-clear',
255  'actions-system-cache-clear-impact-high',
256  'actions-system-cache-clear-impact-low',
257  'actions-system-cache-clear-impact-medium',
258  'actions-system-cache-clear-rte',
259  'actions-system-extension-configure',
260  'actions-system-extension-documentation',
261  'actions-system-extension-download',
262  'actions-system-extension-import',
263  'actions-system-extension-install',
264  'actions-system-extension-sqldump',
265  'actions-system-extension-uninstall',
266  'actions-system-extension-update',
267  'actions-system-extension-update-disabled',
268  'actions-system-help-open',
269  'actions-system-list-open',
270  'actions-system-options-view',
271  'actions-system-pagemodule-open',
272  'actions-system-refresh',
273  'actions-system-shortcut-new',
274  'actions-system-tree-search-open',
275  'actions-system-typoscript-documentation',
276  'actions-system-typoscript-documentation-open',
277  'actions-template-new',
278  'actions-unmarkstate',
279  'actions-version-document-remove',
280  'actions-version-page-open',
281  'actions-version-swap-version',
282  'actions-version-swap-workspace',
283  'actions-version-workspace-preview',
284  'actions-version-workspace-sendtostage',
285  'actions-view-go-back',
286  'actions-view-go-down',
287  'actions-view-go-forward',
288  'actions-view-go-up',
289  'actions-view-list-collapse',
290  'actions-view-list-expand',
291  'actions-view-paging-first',
292  'actions-view-paging-first-disabled',
293  'actions-view-paging-last',
294  'actions-view-paging-last-disabled',
295  'actions-view-paging-next',
296  'actions-view-paging-next-disabled',
297  'actions-view-paging-previous',
298  'actions-view-paging-previous-disabled',
299  'actions-view-table-collapse',
300  'actions-view-table-expand',
301  'actions-window-open',
302  'apps-clipboard-images',
303  'apps-clipboard-list',
304  'apps-filetree-folder-add',
305  'apps-filetree-folder-default',
306  'apps-filetree-folder-list',
307  'apps-filetree-folder-locked',
308  'apps-filetree-folder-media',
309  'apps-filetree-folder-news',
310  'apps-filetree-folder-opened',
311  'apps-filetree-folder-recycler',
312  'apps-filetree-folder-temp',
313  'apps-filetree-folder-user',
314  'apps-filetree-mount',
315  'apps-filetree-root',
316  'apps-irre-collapsed',
317  'apps-irre-expanded',
318  'apps-pagetree-backend-user',
319  'apps-pagetree-backend-user-hideinmenu',
320  'apps-pagetree-collapse',
321  'apps-pagetree-drag-copy-above',
322  'apps-pagetree-drag-copy-below',
323  'apps-pagetree-drag-move-above',
324  'apps-pagetree-drag-move-below',
325  'apps-pagetree-drag-move-between',
326  'apps-pagetree-drag-move-into',
327  'apps-pagetree-drag-new-between',
328  'apps-pagetree-drag-new-inside',
329  'apps-pagetree-drag-place-denied',
330  'apps-pagetree-expand',
331  'apps-pagetree-folder-contains-approve',
332  'apps-pagetree-folder-contains-board',
333  'apps-pagetree-folder-contains-fe_users',
334  'apps-pagetree-folder-contains-news',
335  'apps-pagetree-folder-contains-shop',
336  'apps-pagetree-folder-default',
337  'apps-pagetree-page-advanced',
338  'apps-pagetree-page-advanced-hideinmenu',
339  'apps-pagetree-page-advanced-root',
340  'apps-pagetree-page-backend-users',
341  'apps-pagetree-page-backend-users-hideinmenu',
342  'apps-pagetree-page-backend-users-root',
343  'apps-pagetree-page-default',
344  'apps-pagetree-page-domain',
345  'apps-pagetree-page-frontend-user',
346  'apps-pagetree-page-frontend-user-hideinmenu',
347  'apps-pagetree-page-frontend-user-root',
348  'apps-pagetree-page-frontend-users',
349  'apps-pagetree-page-frontend-users-hideinmenu',
350  'apps-pagetree-page-frontend-users-root',
351  'apps-pagetree-page-mountpoint',
352  'apps-pagetree-page-mountpoint-hideinmenu',
353  'apps-pagetree-page-mountpoint-root',
354  'apps-pagetree-page-no-icon-found',
355  'apps-pagetree-page-no-icon-found-hideinmenu',
356  'apps-pagetree-page-no-icon-found-root',
357  'apps-pagetree-page-not-in-menu',
358  'apps-pagetree-page-recycler',
359  'apps-pagetree-page-shortcut',
360  'apps-pagetree-page-shortcut-external',
361  'apps-pagetree-page-shortcut-external-hideinmenu',
362  'apps-pagetree-page-shortcut-external-root',
363  'apps-pagetree-page-shortcut-hideinmenu',
364  'apps-pagetree-page-shortcut-root',
365  'apps-pagetree-root',
366  'apps-pagetree-spacer',
367  'apps-tcatree-select-recursive',
368  'apps-toolbar-menu-actions',
369  'apps-toolbar-menu-cache',
370  'apps-toolbar-menu-opendocs',
371  'apps-toolbar-menu-search',
372  'apps-toolbar-menu-shortcut',
373  'apps-toolbar-menu-workspace',
374  'mimetypes-compressed',
375  'mimetypes-excel',
376  'mimetypes-media-audio',
377  'mimetypes-media-flash',
378  'mimetypes-media-image',
379  'mimetypes-media-video',
380  'mimetypes-other-other',
381  'mimetypes-pdf',
382  'mimetypes-powerpoint',
383  'mimetypes-text-css',
384  'mimetypes-text-csv',
385  'mimetypes-text-html',
386  'mimetypes-text-js',
387  'mimetypes-text-php',
388  'mimetypes-text-text',
389  'mimetypes-word',
390  'mimetypes-x-content-divider',
391  'mimetypes-x-content-domain',
392  'mimetypes-x-content-form',
393  'mimetypes-x-content-form-search',
394  'mimetypes-x-content-header',
395  'mimetypes-x-content-html',
396  'mimetypes-x-content-image',
397  'mimetypes-x-content-link',
398  'mimetypes-x-content-list-bullets',
399  'mimetypes-x-content-list-files',
400  'mimetypes-x-content-login',
401  'mimetypes-x-content-menu',
402  'mimetypes-x-content-multimedia',
403  'mimetypes-x-content-page-language-overlay',
404  'mimetypes-x-content-plugin',
405  'mimetypes-x-content-script',
406  'mimetypes-x-content-table',
407  'mimetypes-x-content-template',
408  'mimetypes-x-content-template-extension',
409  'mimetypes-x-content-template-static',
410  'mimetypes-x-content-text',
411  'mimetypes-x-content-text-picture',
412  'mimetypes-x-sys_action',
413  'mimetypes-x-sys_category',
414  'mimetypes-x-sys_language',
415  'mimetypes-x-sys_news',
416  'mimetypes-x-sys_workspace',
417  'mimetypes-x_belayout',
418  'status-dialog-error',
419  'status-dialog-information',
420  'status-dialog-notification',
421  'status-dialog-ok',
422  'status-dialog-warning',
423  'status-overlay-access-restricted',
424  'status-overlay-deleted',
425  'status-overlay-hidden',
426  'status-overlay-icon-missing',
427  'status-overlay-includes-subpages',
428  'status-overlay-locked',
429  'status-overlay-scheduled',
430  'status-overlay-scheduled-future-end',
431  'status-overlay-translated',
432  'status-status-checked',
433  'status-status-current',
434  'status-status-edit-read-only',
435  'status-status-icon-missing',
436  'status-status-locked',
437  'status-status-permission-denied',
438  'status-status-permission-granted',
439  'status-status-readonly',
440  'status-status-reference-hard',
441  'status-status-reference-soft',
442  'status-status-sorting-asc',
443  'status-status-sorting-desc',
444  'status-status-sorting-light-asc',
445  'status-status-sorting-light-desc',
446  'status-status-workspace-draft',
447  'status-system-extension-required',
448  'status-user-admin',
449  'status-user-backend',
450  'status-user-frontend',
451  'status-user-group-backend',
452  'status-user-group-frontend',
453  'status-version-1',
454  'status-version-2',
455  'status-version-3',
456  'status-version-4',
457  'status-version-5',
458  'status-version-6',
459  'status-version-7',
460  'status-version-8',
461  'status-version-9',
462  'status-version-10',
463  'status-version-11',
464  'status-version-12',
465  'status-version-13',
466  'status-version-14',
467  'status-version-15',
468  'status-version-16',
469  'status-version-17',
470  'status-version-18',
471  'status-version-19',
472  'status-version-20',
473  'status-version-21',
474  'status-version-22',
475  'status-version-23',
476  'status-version-24',
477  'status-version-25',
478  'status-version-26',
479  'status-version-27',
480  'status-version-28',
481  'status-version-29',
482  'status-version-30',
483  'status-version-31',
484  'status-version-32',
485  'status-version-33',
486  'status-version-34',
487  'status-version-35',
488  'status-version-36',
489  'status-version-37',
490  'status-version-38',
491  'status-version-39',
492  'status-version-40',
493  'status-version-41',
494  'status-version-42',
495  'status-version-43',
496  'status-version-44',
497  'status-version-45',
498  'status-version-46',
499  'status-version-47',
500  'status-version-48',
501  'status-version-49',
502  'status-version-50',
503  'status-version-no-version',
504  'status-warning-in-use',
505  'status-warning-lock',
506  'treeline-blank',
507  'treeline-join',
508  'treeline-joinbottom',
509  'treeline-jointop',
510  'treeline-line',
511  'treeline-minus',
512  'treeline-minusbottom',
513  'treeline-minusonly',
514  'treeline-minustop',
515  'treeline-plus',
516  'treeline-plusbottom',
517  'treeline-plusonly',
518  'treeline-stopper',
519  'empty-icon'
520 );
521 
522 
523 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
524  'deleted',
525  'hidden',
526  'starttime',
527  'endtime',
528  'futureendtime',
529  'fe_group',
530  'protectedSection'
531 );
532 
533 
534 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
535  'hidden' => 'status-overlay-hidden',
536  'fe_group' => 'status-overlay-access-restricted',
537  'starttime' => 'status-overlay-scheduled',
538  'endtime' => 'status-overlay-scheduled',
539  'futureendtime' => 'status-overlay-scheduled-future-end',
540  'readonly' => 'status-overlay-locked',
541  'deleted' => 'status-overlay-deleted',
542  'missing' => 'status-overlay-missing',
543  'translated' => 'status-overlay-translated',
544  'protectedSection' => 'status-overlay-includes-subpages'
545 );
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xlf'][]
Definition: ext_tables.php:15
die
Definition: index.php:6
$registry
Definition: ext_tables.php:46