在进行升级之前,需要先弄清楚升级(Upgrade )和更新(Update)这两个不同概念。
整个Drupal升级的过程大概可以分为四大步骤:计划 -> Drupal 升级准备-> 升级过程 -> 升级后测试。切记在升级或更行之前一定要先备份Drupal 的所有文件和数据库,包括核心文件和非核心文件,用户上传文件等等。下面依次介绍的Drupal升级的四大步骤。
Drupal7 与Drupal6 在主题方面有很大的变化,Drupal6 主题好多朋友比较熟悉,对于Drupal7 新主题的变化,在此和大家一起分享和交流。列举如下:
1.Drupal7能够在html.tpl.php.输出RDFa请求有以下变量
2.老的lang属性应该被改成compatibility with XHTML 1.1,仅仅xml:lang应该保留。
3.RDF命名前缀通过HTML文档在html标签中序列化以及被包含在$rdf_namespaces变量中。
4.GRDDL资料应该在<head> 标签内标明
6.x
This is one of the finest technique I found so far to theme webform form. In fact, it could be used for any form generated through Drupal FORM API.
For Example, I needed certain elements of the form to be on one line (horizontally placed), I could do something like below. This is just override function of "template_preprocess_webform_form" provided by webform module. Place this in your theme's template.php file.
The contents of the .info file is cached in the database, so altering it will not be noticed by Drupal. Do not confuse the cache with the theme registry. To clear the cache, do one of the following:
Color.module allows the admin to change the color scheme of a theme completely. By selecting a palette of 5 colors (either from a set or by hand), you can change the colors of an entire theme.
The module can alter the stylesheet and re-render images. However, the theme must provide specific hooks to allow this, and the design must be created specifically to accomodate this.
This document explains the basics of making a colorizable theme.
(Drupal花园公告)Drupal 7.0自2011年1月发布以来,终于推出新的版本,而且一下子更新了2个版本。Gábor Hojtsy 在2011年5月25日下午6点02分在drupal官网发布公告,Drupal 7.1、Drupal 7.2,Drupal 6.21、Drupal 6.22发布。
公告中介绍Drupal 7.1 和 Drupal 6.21 是针对一些安全漏洞的更新,Drupal 7.2 和 Drupal 6.22是修复一些bug,这些来自bug追踪系统。
官网强烈建议升级您的Drupal站点至Drupal7 和 6的最新版本。
Drupal官方在2010年12月16日发布了6.20版本,此版本可能是2010年的最后一次更新。
本次的更新依然是通过错误(bug)追踪系统,对一些(bug)进行了修复,本次没有安全方面的更新,建议尽快更新至最新的版本。
这个版本中值得一提的改变包括二级主题的继承性,系统日志,从drupal 5升级支持,支持tel: 协议,Node翻译系统,非urf-8字符的CSS aggregation问题,指定数据库修复,更完整的Html实体转换等等。有将近50 个Drupal 6补丁。
注意:当Drupal 7 发布之后,Drupal 5 将不再被维护。因此强力推荐升级到Drupal 6。Drupal 7 最新的一个开发版本是Drupal 7 RC2。
上周六下午上海的Meetup如期在SHIFT2举办,虽然发布通知的时间比较紧,但是有将近20位朋友到现场来参加,在此向各位表示感谢!
本次主讲嘉宾echo演讲时间接近4个小时,深入分析了drupal6核心的整体框架,从drupal的Path、到菜单系统(Menu system)到主题开发相关的theme()、hook_theme等多方面进行了详尽的分析和现场操作,不过大部分的内容需要一定的php基础,本次内容对drupal程序开发朋友来说,将是获益匪浅。从聚会通知发布时间到周六,时间虽然很短,但是echo还是百忙中抽出一些时间精心准备,同时制作了ppt(附件中,需要请自行下载),感谢echo的用心准备和精彩的演讲。
接下来,大家对平时遇到的问题也进行了一些讨论,会上我们对演讲的内容进行了录制,没有到现场的朋友可以下载进行观看。当然一次聚会的内容不能将drupal方方面面都介绍到,期待下次,有更多更精彩的内容!再次感谢各位!
视频下载地址:http://115.com/file/b4xwsltk#Drupal-Shanghai-2010-06-26-video.mp4
以下是现场的几个照片欣赏(像素不高,凑合看吧):
这是2010年4月刚出版的drupal新书,为英文版,下面是该书的英文介绍和下载地址,希望对drupal感兴趣的朋友有所帮助。
该书简介:
A thorough introduction that lessens the learning curve to building sites with Drupal 7Drupal 7 is the latest version of the free, open source content management system Drupal. A powerful content management system and framework Drupal has an unfortunate reputation of having a steep learning curve. This guide to Drupal 7 methodically demystifies Drupal and shortening the learning curve.