ITeye博客

Bugzilla Extension的开发

xmeteor · 2012-10-12 11:57 · 编程语言 · Markdown

http://www.bugzilla.org/docs/4.2/en/html/api/Bugzilla/Extension.html

  1. 创建一个extension的开发框架
extensions/create.pl TEST
  1. 程序的Hook写在extensions/TEST/Extension.pm里,有哪些Hook可以用,可参考下面的链接,或者参考extensions/Example/Extension.pm http://www.bugzilla.org/docs/4.2/en/html/api/Bugzilla/Hook.html#HOOKS

  2. 模板的Hook放到”extensions/Example/template/en/default/hook/“,模板Hook的命名方法

<templates>/hook/<template path>/<template name>-<hook name>.<template type>.tmpl
  1. 如需修改模板文件,请将修改过的模板文件copy到extension/template/... 目录下, 如果你的extenstion/template目录下有模板文件,Bugzilla将使用它替代系统的模板文件。

  2. 执行命令 "./checksetup.pl" 安装extension

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。