TYPO3 CMS  TYPO3_7-6
ext_localconf.php
Go to the documentation of this file.
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(
12  function ($extKey) {
13  // Get the extension configuration
14  $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extKey]);
15 
16  if (!isset($extConf['loadContentElementWizardTsConfig']) || (int)$extConf['loadContentElementWizardTsConfig'] === 1) {
17  // Include new content elements to modWizards
18  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/PageTSconfig/NewContentElementWizard.ts">');
19  }
20 
21  $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
22  $dispatcher->connect(
23  \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
24  'afterExtensionConfigurationWrite',
25  \TYPO3\CMS\FluidStyledContent\Hooks\TcaCacheClearing::class,
26  'clearTcaCache'
27  );
28  },
29  $_EXTKEY
30  );
31 }
if(!defined("DB_ERROR")) define("DB_ERROR"
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']
$extConf