用panels 制作drupal首页

1.下载zen主题
路径:https://www.drupal.org/project/zen
2.“启用并设为默认”
3.基于zen制作子主题
把zen目录下STARTERKIT文件夹,复制到sites\all\themes 目录下面。
最终目录结构:sites\all\themes\STARTERKIT
把STARTERKIT文件夹重命名mytheme
4.修改mytheme下的STARTERKIT.info.txt,主要是修改name和description.另存为mytheme.info
5.打开sites\all\themes\mytheme 下的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 //把;去掉

 

posted @ 2015-04-01 16:50  为了这有限的生命  阅读(269)  评论(0编辑  收藏  举报