<p>You could use <code>craft.app.isSystemOn</code>. This will return <code>1</code> if the System Status is "on" in Settings -> General in the control panel. It will also respect the value of the <code>isSystemOn</code> config setting if you're setting it in general.php</p>

CC BY-SA 3.0
2015-05-19T13:36:56.937Z
2015-05-19T13:42:15.693Z
2015-05-19T13:42:15.693Z
Dylan T
<p>does anyone know if there is a flag, accessible at template level, that indicates whether the "System Status" lightswitch in Settings -> General menu is on or off? (I'm thinking something similar to craft.config.devMode)</p>

<p>I tried craft.config.isSystemOn but it did not work since the setting is not defined in the general.php config but rather via the user interface.</p>

<p>Just to give some context, I'd like to add extra items to the template for logged in admin users to see on the website only when system status is set to off (like a warning bar).</p>

<p>Thanks in advance!
Daniel</p>

<templating><status><settings>
System Status flag in template context
# System Status flag in template context

(Asked by: username_0 on 2015-05-19)

does anyone know if there is a flag, accessible at template level, that indicates whether the "System Status" lightswitch in Settings -> General menu is on or off? (I'm thinking something similar to craft.config.devMode)

I tried craft.config.isSystemOn but it did not work since the setting is not defined in the general.php config but rather via the user interface.

Just to give some context, I'd like to add extra items to the template for logged in admin users to see on the website only when system status is set to off (like a warning bar).

Thanks in advance!
Daniel

**Tags:** templating, status, settings


---

## 1 answers

### Answer by username_1 on 2015-05-19. Score: 9 | Accepted answer

You could use `craft.app.isSystemOn`. This will return `1` if the System Status is "on" in Settings -> General in the control panel. It will also respect the value of the `isSystemOn` config setting if you're setting it in general.php


---

