Search code examples
typo3typoscripttypo3-9.x

Equivalent of [globalVar = GP:tx_news_pi1|news > 0] with symfony expression language?


How can I check if a page is a single view (ie for news) with the newly integrated symfony expression language in typoscript? I am searching for the equivalent of:

[globalVar = GP:tx_news_pi1|news > 0]


Solution

  • Found it:

    [request.getQueryParams()['tx_news_pi1']['news'] > 0]