forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
97 lines (87 loc) · 4.01 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
97
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['flux']['setup'] = unserialize($_EXTCONF);
if (TRUE === (boolean) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['flux']['setup']['reportErrors']) {
// Note: constants used only when Flux is configured to report errors remotely. Reports
// are completely anonymised, containing only exception code and version information.
define('FLUX_REMOTE_REPORT_ERROR', 'http://fedext.net/report/error.php');
// Note: monitored-exceptions.json contains a very simple list of Exception codes. The
// JSON file is downloaded and cached locally in typo3temp with a TTL of 24 hours.
define('FLUX_REMOTE_REPORT_MONITORED_EXCEPTIONS', 'http://fedext.net/report/monitored-exceptions.json');
}
// 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']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass']['flux'] = 'Tx_Flux_Backend_DynamicFlexForm';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'Tx_Flux_Backend_TceMain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] = 'Tx_Flux_Backend_TceMain->clearCacheCommand';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources']['flux'] = 'EXT:flux/Classes/Backend/TypoScriptTemplate.php:Tx_Flux_Backend_TypoScriptTemplate->preprocessIncludeStaticTypoScriptSources';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['extTablesInclusion-PostProcessing']['flux'] = 'EXT:flux/Classes/Backend/TableConfigurationPostProcessor.php:Tx_Flux_Backend_TableConfigurationPostProcessor';
/*
* The following code fixes the following issue:
* https://github.com/FluidTYPO3/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';
}
Tx_Flux_Core::registerConfigurationProvider('Tx_Flux_Provider_ContentProvider');
/*
* 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 {
}
}