Maintenance Template File ignored on Frontpage

Created on 7 May 2018, over 6 years ago
Updated 5 June 2023, over 1 year ago

I've a problem with Maintenance-Mode ond Druapl 7.59 but only on the Frontpage.

There is a page--front.tpl.php I use in my template folder. In Maintenance-Mode every Site but the Frontpage uses correct maintenance-page.tpl.php from Core (Bootstrap-Sub-Theme in use). I can check this with THEME DEBUG. On the Frontpage I can see in THEME DEBUG that there are several Template-File-Names I can use. There is a page--front.tpl.php and also the maintenance-page-tpl.php.

THEME DEBUG shows then on the Frontpage that page--front.tpl.php is in use. How can that happen in Maintenance-Mode?

I tried to force the use of maintenance-page-tpl.php with 'preprocess_maintenance_page' but not succesfully. Here ist the code:

function MYTHEME_preprocess_maintenance_page(&$vars) {   
    $vars['theme_hook_suggestions'][] = 'maintenance_page';  
}

Thank youu for any help on this.

🐛 Bug report
Status

Active

Version

7.0 ⚰️

Component
Theme 

Last updated about 1 hour ago

Created by

🇦🇹Austria winkflo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024