Issue Bug Closed

#90715Typoscript conditions won't work using $GLOBALS['TSFE']->getPagesTSconfig()

Stefan Berger 03/10/20, 12:24 updated 03/10/20, 12:43

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.