Actions
Bug #90715
closedTyposcript conditions won't work using $GLOBALS['TSFE']->getPagesTSconfig()
Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-03-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions