国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal教程] 如何用drupal创建基本的wiki维基系统

[复制链接]
发表于 1-17-2012 19:42 | 显示全部楼层 |阅读模式

Build a Wiki System With Drupal* e; R! d# {7 P- h2 ?; ]5 A% U
作者:  Raincity Studios---- zamir- H$ I( J4 L; a! D
Wiki是什么?

Wiki概念发明人沃德·坎宁安(Ward Cunningham)为Wiki下了定义:一群相互连接并可自由扩展的网页、一套用来储存与修改信息的超文字系统,所有的网页储存在一套数据库中,任何人透过具有表单功能的浏览器用户程序,皆可轻易加以编辑。( ^  l0 ^+ X( `! C
Wiki的特点
; e% a2 i, j7 T: I0 ?1.使用方便,维护快捷:快速创建、存取、更改超文本页面(这也是为什幺叫作“wiki wiki”的原因)。格式简单:用简单的格式标记来取代 HTML 的复杂格式标记。(类似所见即所得的风格)链接方便:通过简单标记,直接以关键字名来建立链接(页面、外部连接、图像等)。命名平易:关键字名就是页面名称,并且被置于一个单层、平直的名空间中。
5 w# w9 V0 H- f5 B' w: n- q2.有组织0 G& O3 Y4 W9 O
自组织的:同页面的内容一样,整个超文本的组织结构也是可以修改、演化的。可汇聚的:系统内多个内容重复的页面可以被汇聚于其中的某个,相应的链接结构也随之改变。
' s) f8 w  X( D1 Z- y, q: D3.可增长0 \% }& F4 S% V2 C+ N0 Q6 A5 w
可增长:页面的链接目标可以尚未存在,通过点击链接,我们可以创建这些页面,从而使系统得到增长。修订历史:记录页面的修订历史,页面的各个版本都可以被获取。- O" v" F+ i7 e; h& v
4.开放性. p& G1 n. u( U* m# b* ?
开放的:社群的成员可以任意创建、修改、删除页面。可观察:系统内页面的变动可以被访问者观察到。


( g' g3 D( f* O: |: T1 T- r需要的模块
8 N# m5 d+ m- D3 n1.Freelinking (http://drupal.org/project/freelinking) Provides the ability to easilylink between pages
& L/ d' n. y7 S3 y# B0 l2.Markdown filter (http://drupal.org/project/markdown) Provides an easy, human-readable way to enter HTML formatting
8 Q9 I' i7 a! I: x6 d7 L; ~. k6 Z3.Diff (http://drupal.org/project/diff)Shows color-coded list of changes between two revisions of content$ h9 k, e: `& R* h' O- j+ E8 g
4.Pathauto (http://drupal.org/project/pathauto)Automatically creates clean, search-engine-friendly URLs
1 C$ {  N' Y8 x+ M5.Token (http://drupal.org/project/token)A utility module to provide variables that are later replaced with dynamic bits,such as [user-name]8 A% b/ J# @8 Z8 g( {% v
6.CCK (http://drupal.org/project/cck)

1 Q: c, o" p5 w
第一步:启用以下模块/ C. i3 F  I9 u1 r5 ^7 i# q; x
" E% i" s+ \5 I6 o, A% g1 O0 r- ]
diff7 \9 w7 r) x; d- B; U6 E- o
markdown
" E1 X% h' ~1 D+ h7 ]$ }+ Cpathauto
1 d1 L  a; R0 _+ m- w8 R' tfreelinking
/ q8 ^  y0 ?0 _token1 N6 B" g& k* w  c) }; _' i
content
. I/ [' m7 F1 Q' s( g! Ycontent permissions! w2 u. m& D) z1 p
( f$ {$ c( d7 E$ a: Q* L
第二步:添加一个新的内容类型

Name: "Wiki page"
; ]9 Z3 c4 V8 F3 m/ PType: wiki6 T- N) h' g9 ^( N( B& v1 v
Description: "A page that any authenticated user may editand view changes."
6 c$ C' r7 E  Q4 O1 y6 N0 P2 c! I; JWorkflow settings: in "Default options": uncheck "Promoted to front page", check "Create new revision"


& H) A. ]! E6 C  f第三步:去掉作者信息的显示

Go to admin/build/themes/settings


5 ?8 S# o" `( y! F  @* c$ _, C# Q第四步:权限设置7 m8 y; E6 A. |- E, ~
Set the permissions "create wiki content" and "edit anywiki content" for "authenticated user"( E+ c: B# d4 Z" n& C7 R3 y' {
Set the permissions "revert revisions" and "view revisions"for "authenticated user"

1 e3 W+ ^( P% Z3 [' ]# G
第五步:添加wiki输入格式
3 R! _. \5 L3 O2 Y; c4 M6 ~' fName: "Wiki"
  L# ?* x; y, B. `6 R& AFilter: check "Markdown" and "freelinking filter", uncheck
  m. |: m3 A% w9 Gothers
4 X! J; M4 }: P$ A% L
; @( o/ ]8 _" d. L8 B第六步:输入格式设置
4 V' G. _2 _+ K7 bGo to admin/settings/filters, set the "Wiki" filter to the Default format.


7 ^$ e7 ?9 X; _/ @第七步:freelinking设置
1 y/ e4 j$ c& [! t* j% VGo to admin/settings/freelinking, change the "Default for new content" to "Wiki page".


. r7 ?( l$ p4 \! a* F3 z第八步:pathauto设置9 f; S) `- [8 p/ u: ^  J* |$ e2 t
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]".


3 S2 A6 V+ i4 Y. m( a  W% Z# W

型动视觉www.doooor.com转自Drupal 建站网


. Z. B% l% j4 G# l& u6 e( \4 N" W: I  I- J' U

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 6-20-2025 06:45 , Processed in 0.937332 second(s), 122 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表