-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
36 lines (32 loc) · 1.44 KB
/
ext_localconf.php
File metadata and controls
36 lines (32 loc) · 1.44 KB
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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extKey . '/Configuration/TSConfig/ContentElementWizard.typoscript">');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'JosefGlatz.' . $extKey,
'Show',
[
'Infogram' => 'show',
],
[
'Infogram' => 'show',
]
);
// Only backend relevant stuff
if (TYPO3_MODE === 'BE') {
// Register icons provided by this extension
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-infogram-wizard-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $extKey . '/Resources/Public/Icons/Extension.svg']
);
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$extKey . '_show'][$_EXTKEY] =
\JosefGlatz\Infogram\Hooks\Backend\PageLayoutViewHook::class . '->getExtensionSummary';
}
},
$_EXTKEY
);