[!!!][TASK] Move pages.url_scheme to compatibility7
[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 // 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 // Register eID provider for showpic
37 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = \TYPO3\CMS\Frontend\Controller\ShowImageController::class . '::processRequest';
38
39 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
40 options.saveDocView = 1
41 options.saveDocNew = 1
42 options.saveDocNew.pages = 0
43 options.saveDocNew.sys_file = 0
44 options.saveDocNew.sys_file_metadata = 0
45 options.disableDelete.sys_file = 1
46 ');
47
48 // Registering hooks for the treelist cache
49 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
50 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
51 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
52
53 // Register hook to show preview info
54 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';
55
56 // Register search key shortcuts
57 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
58
59 // Register URL handler for external pages.
60 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']['frontendExternalUrl'] = [
61 'handler' => \TYPO3\CMS\Frontend\Page\ExternalPageUrlHandler::class,
62 ];
63
64 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
65 ->registerIcon(
66 'wizard-backendlayout',
67 \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
68 ['name' => 'table']
69 );