[FEATURE] Add .inline property to includeCSS/includeCSSLibs
[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 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
49 '
50 # Content selection
51 styles.content.get = CONTENT
52 styles.content.get {
53 table = tt_content
54 select {
55 orderBy = sorting
56 where = {#colPos}=0
57 }
58 }
59
60
61 # Content element rendering
62 tt_content = CASE
63 tt_content {
64 key {
65 field = CType
66 }
67 default = TEXT
68 default {
69 field = CType
70 htmlSpecialChars = 1
71 wrap = <p style="background-color: yellow; padding: 0.5em 1em;"><strong>ERROR:</strong> Content Element with uid "{field:uid}" and type "|" has no rendering definition!</p>
72 wrap.insertData = 1
73 }
74 }
75 '
76 );
77
78 // Registering hooks for the tree list cache
79 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
80 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
81 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
82
83 // Register hook to show preview info
84 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';
85
86 // Register for hookss to show preview of tt_content elements in page module
87 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['image'] =
88 \TYPO3\CMS\Frontend\Hooks\PageLayoutView\ImagePreviewRenderer::class;
89 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textpic'] =
90 \TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextpicPreviewRenderer::class;
91 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['text'] =
92 \TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextPreviewRenderer::class;
93 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textmedia'] =
94 \TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextmediaPreviewRenderer::class;
95
96 // Register search key shortcuts
97 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
98
99 // Register URL handler for external pages.
100 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']['frontendExternalUrl'] = [
101 'handler' => \TYPO3\CMS\Frontend\Page\ExternalPageUrlHandler::class,
102 ];
103
104 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
105 ->registerIcon(
106 'wizard-backendlayout',
107 \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
108 ['name' => 'table']
109 );
110
111 // Include new content elements to modWizards
112 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
113 '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:frontend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.txt">'
114 );
115 // Include FormEngine adjustments
116 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
117 '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:frontend/Configuration/TSconfig/Page/TCEFORM.txt">'
118 );