-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
61 lines (48 loc) · 3.64 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
defined('TYPO3_MODE') or die();
// Get the extension configuration
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
// Define TypoScript as content rendering template
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'contentrenderingcore/Configuration/TypoScript/Static/';
// Register for hook to show preview of tt_content element of CType="textmedia" in page module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textmedia'] = \TYPO3\CMS\FluidStyledContent\Hooks\TextmediaPreviewRenderer::class;
// Overload (XCLASS) the FLUIDTEMPLATE content object for use of Data Processors
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\FluidTemplateContentObject'
);
// Overload (XCLASS) the FLUID StandaloneView to make use of templateRootPaths
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Fluid\\View\\StandaloneView'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\StandaloneView'
);
// Overload (XCLASS) the PageRepository to use method getMenuForPages
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\Page\\PageRepository'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\PageRepository'
);
// Overload (XCLASS) the PageLayoutView to use method getThumbCodeUnlinked
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\Backend\\View\\PageLayoutView'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\PageLayoutView'
);
// Overload (XCLASS) the ContentObjectRenderer to use method getRecords
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\ContentObjectRenderer'
);
// Overload (XCLASS) the CommandUtility to use method escapeShellArguments
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Utility\\CommandUtility'] = array(
'className' => 'PatrickBroens\\ContentRenderingCore\\Xclass\\CommandUtility'
);
// Commalist of file extensions perceived as media files by TYPO3. Lowercase and no spaces between!
$GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] = 'gif,jpg,jpeg,bmp,png,pdf,svg,ai,mp3,wav,mp4,webm,youtube,vimeo';
// Include new content elements to mod.wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:content_rendering_core/Configuration/PageTSconfig/NewContentElementWizard.ts">'
);
// Exclude non used content elements from core
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:content_rendering_core/Configuration/PageTSconfig/TCEFORM.ts">'
);
// Register upgrade wizard to migrate FlexForm data for CE "table" to regular database fields
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['tableCType'] = \PatrickBroens\ContentRenderingCore\Updates\TableFlexFormToTtContentFieldsUpdate::class;
// Register upgrade wizard to migrate the old Ctypes "text", "image" and "textpic" to "textmedia"
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['textmediaCType'] = \PatrickBroens\ContentRenderingCore\Updates\ContentTypesToTextMediaUpdate::class;
// Register upgrade wizard to migrate the field "media" to "assets" for the CE "textmedia"
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['textmediaAssets'] = \PatrickBroens\ContentRenderingCore\Updates\MigrateMediaToAssetsForTextMediaCe::class;