Код: Выделить всё
$configurationManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Configuration\\BackendConfigurationManager');
$configurationManager->currentPageId = $pageId;
$extbaseFrameworkConfiguration = $configurationManager->getTypoScriptSetup();
return $extbaseFrameworkConfiguration;
Я пробовал это
Код: Выделить всё
$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
$typoScript = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
Код: Выделить всё
Setup array has not been initialized. This happens in cached Frontend scope where full TypoScript is not needed by the system.Подробнее здесь: https://stackoverflow.com/questions/790 ... -usage-v13
Мобильная версия