Build a Wiki System With Drupal
& i0 j& Y, `; ^5 o+ x作者: Raincity Studios---- zamir1 G/ ^9 G& @9 t( Y6 H( m
Wiki是什么? Wiki概念发明人沃德·坎宁安(Ward Cunningham)为Wiki下了定义:一群相互连接并可自由扩展的网页、一套用来储存与修改信息的超文字系统,所有的网页储存在一套数据库中,任何人透过具有表单功能的浏览器用户程序,皆可轻易加以编辑。
9 l2 P6 i8 _1 @8 i7 H9 m: N8 OWiki的特点
2 ^' k+ {3 V/ U7 `1.使用方便,维护快捷:快速创建、存取、更改超文本页面(这也是为什幺叫作“wiki wiki”的原因)。格式简单:用简单的格式标记来取代 HTML 的复杂格式标记。(类似所见即所得的风格)链接方便:通过简单标记,直接以关键字名来建立链接(页面、外部连接、图像等)。命名平易:关键字名就是页面名称,并且被置于一个单层、平直的名空间中。 o7 c2 k- _% N
2.有组织# Q+ L5 c* J! m8 e* r
自组织的:同页面的内容一样,整个超文本的组织结构也是可以修改、演化的。可汇聚的:系统内多个内容重复的页面可以被汇聚于其中的某个,相应的链接结构也随之改变。, ^6 b f9 M' W3 |0 d
3.可增长& c2 H1 I& |( Q. w) y! X5 p
可增长:页面的链接目标可以尚未存在,通过点击链接,我们可以创建这些页面,从而使系统得到增长。修订历史:记录页面的修订历史,页面的各个版本都可以被获取。4 U- T2 \% p ^4 N' V
4.开放性
" z* ]6 h9 b8 z开放的:社群的成员可以任意创建、修改、删除页面。可观察:系统内页面的变动可以被访问者观察到。 % R5 l+ Q5 O5 O$ f
需要的模块
- b _4 ]% u6 O! n! Y" X& L1.Freelinking (http://drupal.org/project/freelinking) Provides the ability to easilylink between pages
1 j7 N6 h% d5 M6 j, O! N5 q9 q2.Markdown filter (http://drupal.org/project/markdown) Provides an easy, human-readable way to enter HTML formatting& ^/ r# r5 f* k/ n. u. I1 G' G
3.Diff (http://drupal.org/project/diff)Shows color-coded list of changes between two revisions of content
1 t+ X1 e8 z( }# d0 g+ E& A9 Y5 Q) Q4.Pathauto (http://drupal.org/project/pathauto)Automatically creates clean, search-engine-friendly URLs
0 r! Y4 ^! I3 P% \9 O3 W5.Token (http://drupal.org/project/token)A utility module to provide variables that are later replaced with dynamic bits,such as [user-name]
0 k: ~) R6 Q9 A v* b( v6.CCK (http://drupal.org/project/cck)
4 g h" ]8 K6 r B! y; Y4 ~0 T第一步:启用以下模块# m$ s; B7 o, }- z6 \- F+ n+ N
. K, ?4 B; a d) W0 W
diff1 e. E- J9 v1 l- Q. f
markdown3 G2 x0 \; f* P$ y9 Q+ Z6 f( P
pathauto* T& Z# K( v* \, q5 q. W# A3 p
freelinking- V; C* F! C# l5 _! w* I' {
token9 H5 `7 x2 S5 @# E Z: p
content" q, a* r3 B9 u" b5 M8 `
content permissions
% {% s; a! M: T8 h9 f$ x/ P
0 k9 C5 n) G# e% L& ]8 N8 \第二步:添加一个新的内容类型
Name: "Wiki page"6 s% s4 ]) c1 n6 U+ N3 \
Type: wiki) Q9 d2 `5 G" r7 V- c h
Description: "A page that any authenticated user may editand view changes."
5 g% f P3 L+ `' lWorkflow settings: in "Default options": uncheck "Promoted to front page", check "Create new revision"
: h; e4 E$ e4 Y2 `第三步:去掉作者信息的显示
Go to admin/build/themes/settings 3 q0 a4 g4 d, F
第四步:权限设置
( r! N5 J/ ^' R" [4 ISet the permissions "create wiki content" and "edit anywiki content" for "authenticated user"* N9 i7 f8 t8 q6 X
Set the permissions "revert revisions" and "view revisions"for "authenticated user" Z/ k6 }9 a, d( z! v8 f c
第五步:添加wiki输入格式
. a& h" D8 [! k) j! NName: "Wiki"
; S/ Q0 t( T$ J$ @1 W# yFilter: check "Markdown" and "freelinking filter", uncheck+ g. i& E9 u- N: B# y
others
+ w# U/ S6 y. d8 q5 e ! n) x I- @7 O% r- H2 ~1 c9 c
第六步:输入格式设置& Y2 r3 [2 q- o/ a+ {; D% D1 z0 C7 I
Go to admin/settings/filters, set the "Wiki" filter to the Default format. 2 ^& s- p, T4 X3 ^
第七步:freelinking设置; s) H1 g3 ]' a; p
Go to admin/settings/freelinking, change the "Default for new content" to "Wiki page".
1 O( G/ _2 `2 P/ J' ~第八步:pathauto设置8 a' Q4 e% h0 s$ F/ O
go to admin/build/path/pathauto, expand the "Node pathsettings" fieldset and in the "Pattern for all Wiki page paths", enter "community/animepedia/[title-raw]". A& n4 J- a( @1 L
型动视觉www.doooor.com转自Drupal 建站网 3 P2 L1 U( Q; t. h3 ~8 w* s& L
# W/ {# |- q+ @9 K
|