[CLEANUP] Deprecate DataHandler property stripslashes_values
[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 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
14 'frontend',
15 'setup',
16 'config.extTarget = _top'
17 );
18
19
20 if (TYPO3_MODE === 'FE') {
21
22 // Register eID provider for showpic
23 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = 'EXT:frontend/Resources/PHP/Eid/ShowPic.php';
24 // Register eID provider for ExtDirect for the frontend
25 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = 'EXT:frontend/Resources/PHP/Eid/ExtDirect.php';
26
27 // Register the core media wizard provider
28 \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider(\TYPO3\CMS\Frontend\MediaWizard\MediaWizardProvider::class);
29
30 // Register all available content objects
31 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], array(
32 'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
33 'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
34 'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
35 'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
36 'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
37 'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
38 'FILE' => \TYPO3\CMS\Frontend\ContentObject\FileContentObject::class,
39 'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
40 'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
41 'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
42 'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
43 'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
44 'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
45 'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
46 'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
47 'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
48 'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
49 'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
50 'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
51 ));
52 }
53
54
55 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
56 options.saveDocView = 1
57 options.saveDocNew = 1
58 options.saveDocNew.pages = 0
59 options.saveDocNew.sys_file = 0
60 options.disableDelete.sys_file = 1
61 TCAdefaults.tt_content.imagecols = 2
62 ');
63 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
64 mod.wizards.newContentElement {
65 renderMode = tabs
66 wizardItems {
67 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
68 common.elements {
69 header {
70 icon = gfx/c_wiz/regular_header.gif
71 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
72 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
73 tt_content_defValues {
74 CType = header
75 }
76 }
77 text {
78 icon = gfx/c_wiz/regular_text.gif
79 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
80 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
81 tt_content_defValues {
82 CType = text
83 }
84 }
85 textpic {
86 icon = gfx/c_wiz/text_image_right.gif
87 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_title
88 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_description
89 tt_content_defValues {
90 CType = textpic
91 imageorient = 17
92 }
93 }
94 image {
95 icon = gfx/c_wiz/images_only.gif
96 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_title
97 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_description
98 tt_content_defValues {
99 CType = image
100 }
101 }
102 bullets {
103 icon = gfx/c_wiz/bullet_list.gif
104 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_title
105 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_description
106 tt_content_defValues {
107 CType = bullets
108 }
109 }
110 table {
111 icon = gfx/c_wiz/table.gif
112 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_title
113 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_description
114 tt_content_defValues {
115 CType = table
116 }
117 }
118
119 }
120 common.show = header,text,textpic,image,bullets,table
121
122 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special
123 special.elements {
124 uploads {
125 icon = gfx/c_wiz/filelinks.gif
126 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_title
127 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_description
128 tt_content_defValues {
129 CType = uploads
130 }
131 }
132 menu {
133 icon = gfx/c_wiz/sitemap2.gif
134 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_title
135 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_description
136 tt_content_defValues {
137 CType = menu
138 menu_type = 0
139 }
140 }
141 html {
142 icon = gfx/c_wiz/html.gif
143 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_title
144 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_description
145 tt_content_defValues {
146 CType = html
147 }
148 }
149 div {
150 icon = gfx/c_wiz/div.gif
151 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_title
152 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_description
153 tt_content_defValues {
154 CType = div
155 }
156 }
157 shortcut {
158 icon = gfx/c_wiz/shortcut.gif
159 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_title
160 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_description
161 tt_content_defValues {
162 CType = shortcut
163 }
164 }
165
166 }
167 special.show = uploads,menu,html,div,shortcut
168
169 # dummy placeholder for forms group
170 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
171
172 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
173 plugins.elements {
174 general {
175 icon = gfx/c_wiz/user_defined.gif
176 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
177 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
178 tt_content_defValues.CType = list
179 }
180 }
181 plugins.show = *
182 }
183 }
184
185 ');
186
187 // Registering hooks for the treelist cache
188 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
189 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
190 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
191
192 // Register search keys
193 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
194 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
195
196 // Register hook to show preview info
197 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';