Drupal Zen 子主题创建问题:侧边栏、页眉和页脚区域消失
我目前正在尝试通过执行以下操作来创建 Drupal 主题作为 Zen 子主题:
- 我按照 “如何构建自己的子主题(6.x-2.x)”文档
- 问题是,当我启用新主题时,没有显示页眉、页脚或侧边栏。当启用新主题时,这些区域也会从主要 Zen 主题中消失。
- 我正在使用 Drupal 6.16 和 Zen 6.x-2.0
- 新版本 Zen 有关
我已经成功地使用以前版本的 Zen (6.x-1.x) 创建了 Zen 子主题,所以我怀疑这个问题与自 Drupal 以来的 不显示与此问题相关的任何错误消息,我完全感到困惑。因此,非常感谢有关如何调试或解决此问题的任何提示!
已完成以下调试:
- Apache 错误/访问日志没有提供新的洞察
- 区域变量(
$content_top
、$content_bottom
、$header
、等)在page.tpl.php
中为空
I am currently trying to create a Drupal theme as a Zen subtheme, by doing the following:
- I created a new Zen subtheme by following instructions in "How to build your own sub-theme (6.x-2.x)" documentation
- The problem is that when I enable the new theme, no header, footer or sidebars are displayed. When the new theme is enabled, these regions disappear also from main Zen theme.
- I am using Drupal 6.16 with Zen 6.x-2.0
- I have succesfully created Zen subthemes with previous version of Zen (6.x-1.x), so I suspect this problem has something to do with the new version of Zen
Since Drupal doesn't display any error messages related to this issue, I am totally puzzled. Therefore any tips on how to debug or solve this problem are MUCH appreciated!
The following debugging has already been done:
- Apache error / access logs give no new insight
- Region variables (
$content_top
,$content_bottom
,$header
, etc.) inpage.tpl.php
are empty
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我能够通过使用 Zenophile 来解决这个问题:
如果没有人能告诉我更好的方法几天后,我将代表我结束这个问题,并在将来继续采用这种方法。
Finally, I was able to work around the problem by using Zenophile:
If nobody can tell me a better approach in a couple of days, I will close this question from my behalf and proceed with this approach in the future as well.