This repository has been archived by the owner on Mar 5, 2020. It is now read-only.
forked from fnagel/beautyofcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
42 lines (36 loc) · 1.71 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function ($packageKey) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TYPO3.'.$packageKey,
'ContentRenderer',
array(
'Content' => 'render',
),
array(),
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
// BE preview
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][] =
'TYPO3\Beautyofcode\Hooks\PageLayoutViewHooks';
// Cache registration
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode'] = array();
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode']['backend'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode']['backend'] =
'TYPO3\\CMS\\Core\\Cache\\Backend\\TransientMemoryBackend';
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode']['frontend'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_beautyofcode']['frontend'] =
'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend';
}
// Dynamic changing of t3editor format
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1491758504] = [
'nodeName' => 't3editor',
'priority' => '70',
'class' => \TYPO3\Beautyofcode\Form\Element\T3editorElement::class,
];
}, $_EXTKEY);