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