[BUGFIX] Add icon rendering for custom permissions options
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Define TypoScript as content rendering template
5 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'fluidstyledcontent/Configuration/TypoScript/Static/';
6
7 // Register for hook to show preview of tt_content element of CType="textmedia" in page module
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textmedia'] = \TYPO3\CMS\FluidStyledContent\Hooks\TextmediaPreviewRenderer::class;
9
10 if (TYPO3_MODE === 'BE') {
11 call_user_func(function () {
12 // Get the extension configuration
13 $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['fluid_styled_content'], ['allowed_classes' => false]);
14
15 if (!isset($extConf['loadContentElementWizardTsConfig']) || (int)$extConf['loadContentElementWizardTsConfig'] === 1) {
16 // Include new content elements to modWizards
17 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/PageTSconfig/NewContentElementWizard.ts">');
18 }
19
20 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
21 ->connect(
22 \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
23 'afterExtensionConfigurationWrite',
24 \TYPO3\CMS\FluidStyledContent\Hooks\TcaCacheClearing::class,
25 'clearTcaCache'
26 );
27 });
28 }