Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Theming the maintenance page and Database offline Page

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 341
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: