多种条件与Typoscript的组合
从Typo3 9 LTS到Typo3 10 LTS,我有一个问题切换的组合条件。
到目前为止,语法看起来像这样:
[PIDinRootline = 31] && [treeLevel = 4]
page.10.variables.cagmenu < lib.cagpagebrowser
[global]
我对新的语法进行了以下操作:
[31 in tree.rootLineIds] && [tree.level == 5]
page.10.variables.cagmenu < lib.cagpagebrowser
[global]
如果我省略了第二个条件&amp;&amp; [tree.Level == 4]
所需的行为均在页面的所有子页面上实现,ID = 31。
我必须如何相应地实施我的病情,以便它在Typo3 10 LTS下也起作用?
I have a problem switching combined conditions from TYPO3 9 LTS to TYPO3 10 LTS.
The syntax so far looks like this:
[PIDinRootline = 31] && [treeLevel = 4]
page.10.variables.cagmenu < lib.cagpagebrowser
[global]
I adapted the new syntax as follows:
[31 in tree.rootLineIds] && [tree.level == 5]
page.10.variables.cagmenu < lib.cagpagebrowser
[global]
If I omit the second condition && [tree.level ==4]
the desired behaviour is implemented on all subpages of the page with ID=31.
How do I have to implement my condition accordingly so that it also works under TYPO3 10 LTS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
逻辑操作员必须在方括号内使用。
因此您的病情是:
[31 in Tree.RootlineIds&amp;&amp; tree.level == 5]
或[31 in tree.RootlineIds和tree.level == 5]
可以在手动
The logical operater has to be used inside the square brackets.
so your condition would be:
[31 in tree.rootLineIds && tree.level == 5]
or[31 in tree.rootLineIds and tree.level == 5]
More information can be found in the manual