Ad

How Can We Use Or Condition In October Cms To Check The Pages

- 1 answer

how to use or condition for checking the page in october cms ? I have attached a screenshot of my code above.

Ad

Answer

you can use it like that

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

okay I updated the answer. please check now

Ad
source: stackoverflow.com
Ad