1

Is the Offline Template a physical .html file?

What I would like to do is write a database failure check in the config file so that if for some reason the database fails it will turn on maintenance mode which will display the offline template.

If the offline template is served from the DB this obviously will not work.

4

The offline template is served from the DB, which can be edited in the control panel:

Design > Message Pages > Offline Template

However, Custom System Messages allows you to use custom templates as system message which can parse other template tags.

| improve this answer | |
  • 1
    Like many other people, I wish this was built in and that you could pass templates into those files natively :( – Mark Busnelli Jr Jun 4 '13 at 23:01
  • It makes no sense to me that a template for being offline which I'd presume would be used if the database couldn't connect is indeed stored and served from the database. – William Isted Mar 22 '16 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.