-
Notifications
You must be signed in to change notification settings - Fork 5
/
ext_localconf.php
38 lines (34 loc) · 1.21 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
<?php
if (!defined('TYPO3')) {
die ('Access denied.');
}
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'fetchurl',
'Pi1',
[
\In2code\Fetchurl\Controller\FetchController::class => 'fetch'
],
[],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'fetchurl',
'Pi2',
[
\In2code\Fetchurl\Controller\FetchController::class => 'iframe'
],
[],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
/**
* ContentElementWizard
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import "EXT:fetchurl/Configuration/TsConfig/Page/ContentElementWizard.typoscript"'
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['fetchurlPluginUpdater']
= \In2code\Fetchurl\Update\FetchurlPluginUpdater::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['fetchurlPermissionUpdater']
= \In2code\Fetchurl\Update\FetchurlPermissionUpdater::class;
});