用panels 制作drupal首页

1.下载zen主题
路径:https://www.drupal.org/project/zen
2.“启用并设为默认”
3.基于zen制作子主题
把zen目录下STARTERKIT文件夹,复制到sitesall hemes 目录下面。
最终目录结构:sitesall hemesSTARTERKIT
把STARTERKIT文件夹重命名mytheme
4.修改mytheme下的STARTERKIT.info.txt,主要是修改name和description.另存为mytheme.info
5.打开sitesall hemesmytheme 下的template.php和theme-settings.php文件,讲其中的STARTERKIT全部替换为mytheme
6.后台启用并设置为默认,访问首页出现如图下


访问/drupal/?q=admin/appearance/settings/mytheme,关闭缓存如图


二、启用panels
1.修改mytheme.info文件,找到
; To add a Panels layout (which can also be used by Display Suite), uncomment
; the line below and see the documentation at: https://drupal.org/node/495654
;plugins[panels][layouts] = panels-layouts //把;去掉

原文地址:https://www.cnblogs.com/suihui/p/4384358.html