Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-19T13:36:56.937Z
Answers.LastActivityDate: 2015-05-19T13:42:15.693Z
Answers.LastEditDate: 2015-05-19T13:42:15.693Z
Answers.UserDisplayName: Dylan T
Body: <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>
  
Tags: <templating><status><settings>
Title: System Status flag in template context
ThreadText: # 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!
  username_0
  
  **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
  
  
  ---
  
  