我们如何在 october cms 中使用或条件来检查页面

how can we use or condition in october cms to check the pages

如何在 october cms 中使用或条件检查页面? 我在上面附上了我的代码的屏幕截图。

你可以这样使用它

{% if this.page.baseFileName == 'home' or this.page.title == 'Page not found (404)' %}

好的,我更新了答案。请立即查看