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.
Updated by Georg Ringer over 4 years ago
- Status changed from New to Closed
- Priority changed from Should have to -- undefined --
This has been fixed with #89718 in version 10,therefore closing this issue
Updated by Georg Ringer over 4 years ago
- Related to Feature #89718: Unified PageTS resolving and parsing added
Updated by Stefan Berger over 4 years ago
So, for LTS version 9 it wont be fixed ever?!
Actions