[globalVar = GP:tx_news_pi1|news > 0] 等同于 symfony 表达式语言?
Equivalent of [globalVar = GP:tx_news_pi1|news > 0] with symfony expression language?
我如何使用 typoscript 中新集成的 symfony 表达式语言检查页面是否为单一视图(即新闻)?我正在搜索相当于:
[globalVar = GP:tx_news_pi1|news > 0]
找到了:
[request.getQueryParams()['tx_news_pi1']['news'] > 0]
[traverse(request.getQueryParams(), 'tx_news_pi/news') > 0]
# This condition matches if current query parameters have tx_news_pi[news] set to a value greater than zero
[END]
我如何使用 typoscript 中新集成的 symfony 表达式语言检查页面是否为单一视图(即新闻)?我正在搜索相当于:
[globalVar = GP:tx_news_pi1|news > 0]
找到了:
[request.getQueryParams()['tx_news_pi1']['news'] > 0]
[traverse(request.getQueryParams(), 'tx_news_pi/news') > 0]
# This condition matches if current query parameters have tx_news_pi[news] set to a value greater than zero
[END]