TYPO3 CMS  TYPO3_7-6
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
5  \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
6  \TYPO3\CMS\Core\Resource\Index\MetaDataRepository::class,
7  'recordPostRetrieval',
8  \TYPO3\CMS\Frontend\Aspect\FileMetadataOverlayAspect::class,
9  'languageAndWorkspaceOverlay'
10  );
11 }
12 
13 // Register all available content objects
14 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], [
15  'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
16  'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
17  'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
18  'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
19  'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
20  'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
21  'FILE' => \TYPO3\CMS\Frontend\ContentObject\FileContentObject::class,
22  'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
23  'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
24  'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
25  'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
26  'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
27  'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
28  'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
29  'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
30  'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
31  'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
32  'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
33  'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
34 ]);
35 
36 if (TYPO3_MODE === 'FE') {
37 
38  // Register eID provider for showpic
39  $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = \TYPO3\CMS\Frontend\Controller\ShowImageController::class . '::processRequest';
40  // Register eID provider for ExtDirect for the frontend
41  $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = \TYPO3\CMS\Frontend\Controller\ExtDirectEidController::class . '::processRequest';
42 }
43 
45  options.saveDocView = 1
46  options.saveDocNew = 1
47  options.saveDocNew.pages = 0
48  options.saveDocNew.sys_file = 0
49  options.saveDocNew.sys_file_metadata = 0
50  options.disableDelete.sys_file = 1
51 ');
52 
53 // Registering hooks for the treelist cache
54 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
55 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
56 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
57 
58 // Register hook to show preview info
59 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';
60 
61 // Register search key shortcuts
62 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
63 
64 // Register URL handler for external pages.
65 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']['frontendExternalUrl'] = [
66  'handler' => \TYPO3\CMS\Frontend\Page\ExternalPageUrlHandler::class,
67 ];
if(!defined("DB_ERROR")) define("DB_ERROR"
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']