Feelings

I am sailing ...

  • Increase font size
  • Default font size
  • Decrease font size
首页 日志 学习笔记 dokuwiki和mantis的集成

dokuwiki和mantis的集成   分享到新浪微博  

E-mail Print
User Rating: / 1
PoorBest 

把bug系统和wiki整合了一下,这样就可以更好地共享协作一些信息了,也可以利用wiki进行工作分配。

整合dokuwiki和mantis参照的是这篇文章,写得非常细致:

http://wiki.mantisbt.org/doku.php/mantisbt:issue:7075:integration_with_dokuwiki

其中由于mantis版本教新,关于mantis的修改只要做到在config_inc.php文件中添加以下一行:

$g_wiki_enable = ON;

就可以了。

然后为dokuwiki安装了三个plugins,这些plugin的下载在:

http://www.dokuwiki.org/plugins

plugin的安装很简单,只要解压缩到dokuwiki目录下lib/plugins/里面。

1、addnewpage

第一次接触wiki,总是不知道文章发到哪里去了,在搞清楚名称空间(namespace)和页面(page)的关系后,这个plugin还是很有用的,但是,其中有一个bug,就是点击添加页面都会出现当前页面的编辑界面,解决方法如下:

打开addnewpage目录下的script.js,将其中:

"?id="

替换为:

"/dokuwiki/doku.php?id="

因为我这里dokuwiki安装在apache的web根路径下。

addnewpage的语法是:

{{NEWPAGE}}

表单会出现选择名称空间的下拉框和文章标题的输入文本框。

{{NEWPAGE>[namespace]}}

指定了发表文章的名称空间,所以只需要输入文章标题就行了。

2、task

这是一个添加任务的plugin,详细说明请参见:

http://www.dokuwiki.org/plugin:task

基本用法:

~~TASK:[用户名]?[截止日期][优先级]~~

其中:
截止日期采用YYYY-MM-DD格式

优先级包括low、medium !、high !! 或者critical !!!

任务框的背景颜色差异表示了优先级。

例如:

~~TASK:qings?2008-12-31!!!~~
  
任务分配给: qings
完成日期: 2008/12/31 
状态:    拒绝 新 已接受 已开始 已完成 已验证  
 
显示任务:

{{tasks>task}}

其中大于号后面的task是指索引里的名称空间,比如想看mantis里所有的任务,并且不需要显示新任务的表单:

{{tasks>mantis&noform}}

3、pagelist

这个plugin是task显示其他名称空间中的任务时所需要的,其他的用法还没有研究。

重要提示,在配置设置里面,有一个“使用更整洁的 URL ”,如果出现上传文件无法正确阅读的情况,需要将该设置改为“无”,郁闷了很长时间,才发现是这个问题。

新增提示:如果上传文件时提示该文件类型禁止上传,可以修改dokuwiki/conf/mime.conf文件,增加文件类型,目前该文件我这里包含以下内容:

#Add extensions and mimetypes of files you want to allow to upload here
jpg     image/jpeg
jpeg    image/jpeg
gif     image/gif
png     image/png
tgz     application/octet-stream
tar     application/x-gtar
gz      application/octet-stream
bz2     application/octet-stream
zip     application/zip
rar     application/rar
pdf     application/pdf
ps      application/postscript
doc     application/msword
dot   application/msword
xls     application/msexcel
xlt     application/msexcel
ppt     application/mspowerpoint
pps     application/mspowerpoint
pot     application/mspowerpoint
rtf     application/msword
swf     application/x-shockwave-flash
rpm     application/octet-stream
deb     application/octet-stream
sxw     application/soffice
sxc     application/soffice
sxi     application/soffice
sxd     application/soffice
odc     application/vnd.oasis.opendocument.chart
odf     application/vnd.oasis.opendocument.formula
odg     application/vnd.oasis.opendocument.graphics
odi     application/vnd.oasis.opendocument.image
odp     application/vnd.oasis.opendocument.presentation
ods     application/vnd.oasis.opendocument.spreadsheet
odt     application/vnd.oasis.opendocument.text
mp3   audio/mpeg
mov   video/quicktime
mpg   video/mpeg
avi   video/x-msvideo
wav   audio/x-wav
# You should enable HTML and Text uploads only for restricted Wikis.
# Spammers are known to upload spam pages through unprotected Wikis.
# Note: Enabling HTML opens Cross Site Scripting vulnerabilities
#       through JavaScript. Only enable this with trusted users. You
#       need to disable the iexssprotect option additionally to
#       adding the mime type here
#html    text/html
#htm     text/html
txt     text/plain
log   text/plain
#conf    text/plain
xml     text/xml

 

 


琴声再起 - 赵伟戍 & 吴昊

In order to view this object you need Flash Player 9+ support!

Get Adobe Flash player

Powered by RS Web Solutions

In order to view this object you need Flash Player 9+ support!

Get Adobe Flash player

Powered by RS Web Solutions

弟兄们,还记得小兔子和昊子的吉他组合么?一起来听听当年他们的歌声吧!


Joomla 1.5模板