Typo3 TypoScript and AND Conditions with globalVar

北慕城南 提交于 2019-12-11 06:16:13

问题


I have the following typoscript, I only want it execute when Language is 1 and page ID is 1432

 [globalVar = GP:L =1][globalVar = TSFE:id = 1432]

 lib.atoz = TEXT
 lib.atoz.value (some test )

[global]

However it seems to execute when the first condition is matched not both, it appears to be something to do with globalVar ?

Solved

 [globalVar = GP:L =1] AND [globalVar = TSFE:id = 1432]

 lib.atoz = TEXT
 lib.atoz.value (some test )

[global]

来源:https://stackoverflow.com/questions/57426653/typo3-typoscript-and-and-conditions-with-globalvar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!