| Creating a New Joomla Offline Page |
This is Part 3 of a series of tutorials on Joomla's offline page:
Joomla allows a site to be taken offline with a setting in the Administrator Global Configuration panel. When this happens, frontend access is no longer permitted and a special offline page is displayed. How is the Offline Page Created?By default, the offline page is created from the System Template. You'll find a file called offline.php in the /templates/system/ folder. The file itself is fairly straight-forward and can be divided into five parts:
Part 1. This single line provides error messages, for example if you try to login but enter the wrong information: Part 2. This places a Joomla logo on the page: Part 3. This places your site name on the page: Part 4. This places an offline message on the page: Part 5. This final and longest part of the code places a login box. This code runs from: all the way down to:Creating Your Own Joomla Offline PageYou could of course just edit the default offline.php but you'd lose any changes as soon you upgraded your Joomla site. The best way to do this is to create a file called offline.php in your template folder. Copy the following files:
and add those file to:
This will give you a platform to safely customize the files. |
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.