forked from websightgmbh/typo3-ws_textmedia_bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
23 lines (20 loc) · 1.03 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Register for hook to show preview of tt_content element of CType="wstextmediabootstrap" in page module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['wstextmediabootstrap']
= Websight\WsTextmediaBootstrap\Preview\WsTextmediaPreviewRenderer::class;
if (TYPO3_MODE === 'BE') {
call_user_func(
function ($extKey) {
// Get the extension configuration
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extKey]);
if (!isset($extConf['loadContentElementWizardTsConfig']) || (int)$extConf['loadContentElementWizardTsConfig'] === 1) {
// Include new content elements to modWizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ws_textmedia_bootstrap/Configuration/PageTSconfig/NewContentElementWizard.typoscript">');
}
},
$_EXTKEY
);
}