Maintenance page overriding
Though Drupal provide very elegant page for the maintenance. What if you want to customize it. Yes this could be done by overwriting the page
The system includes a default maintenance template, which is located at /modules/system/maintenance-page.tpl.php copy the template and paste it into your active theme directory. We also need to modify our settting.php file which is located at sites/all/default/settings.php. In setting.php file we need to enable the $conf variable and have to add the name of our theme.
like below
$conf['maintenance_theme'] = 'themename'
As setting file is write protected we might need to change the file permission before editing it and once you are done with the editing save the changes and revert back the file permission as it was before.
Template suggestion when there is a database failure
maintenance-page--offline.tpl.php.
Thanks
0 Comment(s)