多种条件与Typoscript的组合

发布于 2025-02-11 21:35:54 字数 503 浏览 2 评论 0原文

从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单调的奢华 2025-02-18 21:35:54

逻辑操作员必须在方括号内使用。

因此您的病情是:
[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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文