Project

General

Profile

Actions

Bug #90715

closed

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

Added by Stefan Berger over 4 years ago. Updated over 4 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #89718: Unified PageTS resolving and parsingClosedBenni Mack2019-11-21

Actions
Actions #1

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

Actions #2

Updated by Georg Ringer over 4 years ago

  • Related to Feature #89718: Unified PageTS resolving and parsing added
Actions #3

Updated by Stefan Berger over 4 years ago

So, for LTS version 9 it wont be fixed ever?!

Actions

Also available in: Atom PDF