Drupal 7 Drupal 7维护模式自定义页面不工作
前奏曲Drupal 7 Drupal 7维护模式自定义页面不工作,drupal-7,maintenance-mode,Drupal 7,Maintenance Mode,前奏曲 德鲁帕尔7 引导业务(活动主题) 打开维护模式 我已经采取的行动 从modules/system/maintenance page.tpl.php 根据您的需要进行编辑 将其粘贴到主题的根文件夹-->/public\u html/sites/all/themes/bootstrap business 在/public\u html/sites/default/settings.php中设置$conf变量:$conf['maintenance\u theme']='bootstrap\
- 德鲁帕尔7
- 引导业务(活动主题)
- 打开维护模式
modules/system/maintenance page.tpl.php
/public\u html/sites/all/themes/bootstrap business
/public\u html/sites/default/settings.php中设置$conf变量:$conf['maintenance\u theme']='bootstrap\u business'`李>
尽管如此,该网站仍继续显示modules/system/maintenance页面.tpl.php
。我不知道为什么它不起作用。我也尝试过:
- 添加
维护页面--offline.page.tpl.php
- 将主题名称设置为
bootstrap business
以上都不起作用。我认为花45分钟在这么简单的任务上是不够的。我知道我可以编辑modules/system/maintenance page.tpl.php
,但我认为这不是正确的方法
有什么建议吗?清除/刷新缓存(主题注册表缓存)然后重试。如果您已经这样做了,但没有工作,请将页面预处理函数添加到默认主题template.php:
bootstrap_business_preprocess_maintenance_page(&$variables) {
if (isset($variables['db_is_active']) && !$variables['db_is_active']) {
// Template suggestion for offline site
$variables['theme_hook_suggestion'] = 'maintenance_page__offline';
}
else {
// Template suggestion for live site (in maintenance mode)
$variables['theme_hook_suggestion'] = 'maintenance_page';
}
}
相关问题:没什么,这简直难以置信。