this.environment

October CMS Documentation Docs

this.environment

You can access the current environment object via this.environment and it returns a string that references the current environment configuration.

# Example

The following example will display a banner if the website is running in the test environment:

___TWIG0___

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

___TWIG1___
On This Page