[TASK] FSC: Do not show pageTS template if it's included by default
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Configuration / TCA / Overrides / pages.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 call_user_func(
5 function ($extKey) {
6 $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extKey]);
7
8 if (isset($extConf['loadContentElementWizardTsConfig']) && (int)$extConf['loadContentElementWizardTsConfig'] === 0) {
9 // Add pageTSconfig
10 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
11 $extKey,
12 'Configuration/PageTSconfig/NewContentElementWizard.ts',
13 'Fluid-based Content Elements'
14 );
15 }
16 },
17 'fluid_styled_content'
18 );