[TASK] Replace FormEngine update request invocation
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / ext_localconf.php
1 <?php
2
3 defined('TYPO3') or die();
4
5 // Register all available content objects
6 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], [
7 'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
8 'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
9 'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
10 'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
11 'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
12 'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
13 'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
14 'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
15 'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
16 'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
17 'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
18 'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
19 'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
20 'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
21 'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
22 'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
23 'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
24 ]);
25
26 // Register eID provider for showpic
27 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = \TYPO3\CMS\Frontend\Controller\ShowImageController::class . '::processRequest';
28
29 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
30 options.saveDocView = 1
31 options.saveDocNew = 1
32 options.saveDocNew.pages = 0
33 options.saveDocNew.sys_file = 0
34 options.saveDocNew.sys_file_metadata = 0
35 options.disableDelete.sys_file = 1
36 ');
37
38 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
39 '
40 # Content selection
41 styles.content.get = CONTENT
42 styles.content.get {
43 table = tt_content
44 select {
45 orderBy = sorting
46 where = {#colPos}=0
47 }
48 }
49
50
51 # Content element rendering
52 tt_content = CASE
53 tt_content {
54 key {
55 field = CType
56 }
57 default = TEXT
58 default {
59 field = CType
60 htmlSpecialChars = 1
61 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>
62 wrap.insertData = 1
63 }
64 }
65 '
66 );
67
68 // Registering hooks for the tree list cache
69 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
70 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
71 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
72
73 // Register search key shortcuts
74 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
75
76 // Include new content elements to modWizards
77 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
78 "@import 'EXT:frontend/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
79 );
80 // Include FormEngine adjustments
81 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
82 "@import 'EXT:frontend/Configuration/TsConfig/Page/TCEFORM.tsconfig'"
83 );