this.environment

October CMS Documentation Docs

this.environment

Используйте переменную this.environment, чтобы узнать текущую конфигурацию среды.

##Пример:

{% if this.environment == 'test' %}

    <div class="banner">Test Environment</div>

{% endif %}
На этой странице