ba554b9f2798f9c76c0f4cd1a82a1383be160414
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / ext_localconf.php
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 if (TYPO3_MODE === 'FE') {
14
15 // Register eID provider for showpic
16 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = 'EXT:frontend/Resources/PHP/Eid/ShowPic.php';
17 // Register eID provider for ExtDirect for the frontend
18 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = 'EXT:frontend/Resources/PHP/Eid/ExtDirect.php';
19
20 // Register all available content objects
21 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], array(
22 'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
23 'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
24 'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
25 'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
26 'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
27 'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
28 'FILE' => \TYPO3\CMS\Frontend\ContentObject\FileContentObject::class,
29 'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
30 'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
31 'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
32 'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
33 'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
34 'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
35 'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
36 'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
37 'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
38 'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
39 'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
40 'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
41 ));
42 }
43
44
45 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
46 options.saveDocView = 1
47 options.saveDocNew = 1
48 options.saveDocNew.pages = 0
49 options.saveDocNew.sys_file = 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 search keys
59 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
60 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
61
62 // Register hook to show preview info
63 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';