I have a theme per domain set up with domain access.

If I set all my sites into maintenance mode, they all inherit whatever the default theme for the whole install is.

Is it possible to specify to use the maintenance.tpl.php file from the theme a particular domain is using?

Comments

agentrickard’s picture

Category: support » feature

Not sure. This sounds like a Drupal core problem.

Looking, it seems we would need a new setting for 'maintenance theme' per domain, though I can't guarantee that would work.

See http://api.drupal.org/api/drupal/includes!theme.maintenance.inc/function...

iancawthorne’s picture

I did a global $_domain in maintenance page tpl to switch markup and styles based on the domain id. Not ideal, but a solution for now.

An ideal solution would be to have as you say a maintenance theme per domain.

agentrickard’s picture

Yes. It's a pretty simple feature request. Take a look at how we handle admin theme settings.

dqd’s picture

Component: - Domain Settings » Code
Issue summary: View changes
Status: Active » Closed (outdated)

I'll close this issue due to inactivity for 12 years and upcoming EOL of Drupal 7 in January 2025. While the project's version for Drupal 7 will surely keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. A big thanks around for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority.