#90715Typoscript conditions won't work using $GLOBALS['TSFE']->getPagesTSconfig()
Description
Hi,
when you use the $GLOBALS[‘TSFE’]->getPagesTSconfig() method the Typoscript conditions in page ts config won’t be evaluated, because the parse method of the TypoScriptParser is not be called with a ConditionMatcher.
The following snippet would fix that:
$parseObj = GeneralUtility::makeInstance(TypoScriptParser::class); $matcher = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::class); $parseObj->parse($userTS, $matcher);
Thanks for fixing.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.