forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
96 lines (86 loc) · 4.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['flux']['setup'] = unserialize($_EXTCONF);
// Register CLI
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['flux'] = array(
'EXT:flux/Scripts/CommandLineLauncher.php',
'_CLI_lowlevel'
);
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'API', array('Flux' => 'renderChildContent'), array());
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
plugin.tx_flux.view {
templateRootPath = EXT:flux/Resources/Private/Templates/
partialRootPath = EXT:flux/Resources/Private/Partials/
layoutRootPath = EXT:flux/Resources/Private/Layouts/
}
plugin.tx_flux.settings {
flexform {
rteDefaults = richtext[*]:rte_transform[mode=ts_css]
}
object {
image {
richTextCaptions = 1
sliderWidth = 600
sliderStep = 5
maxWidth = 1920
maxHeight = 1080
}
video {
richTextCaptions = 1
}
pages {
minItems = 0
maxItems = 20
size = 4
}
content {
minItems = 0
maxItems = 20
size = 4
}
file {
richTextCaptions = 1
}
}
}
');
//$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['templavoila']['mod1']['renderPreviewContent']['fed_fce'] = 'EXT:flux/Classes/Backend/TemplaVoilaPreview.php:Tx_Flux_Backend_TemplaVoilaPreview';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass']['flux'] = 'EXT:flux/Classes/Backend/DynamicFlexForm.php:Tx_Flux_Backend_DynamicFlexForm';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['flux'] = 'EXT:flux/Classes/Backend/TceMain.php:Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['flux'] = 'EXT:flux/Classes/Backend/TceMain.php:Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['flux'] = 'EXT:flux/Classes/Backend/TceMain.php:Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] = 'EXT:flux/Classes/Backend/TceMain.php:&Tx_Flux_Backend_TceMain->clearCacheCommand';
/*
* The following code fixes the following issue:
* https://github.com/NamelessCoder/flux/issues/19
* Basically, the implementation of preProcess() changes between TYPO3 v4 and v6,
* and this code includes the appropriate class file to make the hook work on both
* platforms.
*/
if (Tx_Flux_Utility_Version::assertCoreVersionIsAtLeastSixPointZero()) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['flux'] = 'EXT:flux/Classes/Backend/PreviewSix.php:Tx_Flux_Backend_PreviewSix';
} else {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['flux'] = 'EXT:flux/Classes/Backend/Preview.php:Tx_Flux_Backend_Preview';
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\Form\\FormEngine'] =
array('className' => 'Tx_Flux_Override_Backend_Form_FormEngine');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools'] =
array('className' => 'Tx_Flux_Override_Core_Configuration_FlexForm_FlexFormTools');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\DataHandling\\DataHandler'] =
array('className' => 'Tx_Flux_Override_Core_DataHandling_DataHandler');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Database\\ReferenceIndex'] =
array('className' => 'Tx_Flux_Override_Core_Database_ReferenceIndex');
Tx_Flux_Core::registerConfigurationProvider('Tx_Flux_Provider_Configuration_ContentObjectConfigurationProvider');
/*
* The following stub adds VH aliases for 4.5 to use: f:format.raw -> f:escape, f:format.htmlentities -> f:escape
*/
if (0 === strpos(TYPO3_version, '4.5')) {
class Tx_Fluid_ViewHelpers_Format_RawViewHelper extends Tx_Fluid_ViewHelpers_EscapeViewHelper {
}
class Tx_Fluid_ViewHelpers_Format_HtmlentitiesViewHelper extends Tx_Fluid_ViewHelpers_EscapeViewHelper {
}
}