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

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

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

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

Build a Wiki System With Drupal
5 o5 U% D4 z+ [: n4 g6 n作者:  Raincity Studios---- zamir
( m. r1 }5 A3 i. oWiki是什么?

Wiki概念发明人沃德·坎宁安(Ward Cunningham)为Wiki下了定义:一群相互连接并可自由扩展的网页、一套用来储存与修改信息的超文字系统,所有的网页储存在一套数据库中,任何人透过具有表单功能的浏览器用户程序,皆可轻易加以编辑。
( S- F! E0 V, l+ j4 H7 ?Wiki的特点
! o1 k" _& r" ~1.使用方便,维护快捷:快速创建、存取、更改超文本页面(这也是为什幺叫作“wiki wiki”的原因)。格式简单:用简单的格式标记来取代 HTML 的复杂格式标记。(类似所见即所得的风格)链接方便:通过简单标记,直接以关键字名来建立链接(页面、外部连接、图像等)。命名平易:关键字名就是页面名称,并且被置于一个单层、平直的名空间中。
3 b2 |7 g8 V! ?! g8 v+ B. W4 S2.有组织- Q6 ]- l: J9 m. c! s& y
自组织的:同页面的内容一样,整个超文本的组织结构也是可以修改、演化的。可汇聚的:系统内多个内容重复的页面可以被汇聚于其中的某个,相应的链接结构也随之改变。/ H6 T- m& {5 t/ }
3.可增长. b3 z, S: S+ Y9 _- l* |
可增长:页面的链接目标可以尚未存在,通过点击链接,我们可以创建这些页面,从而使系统得到增长。修订历史:记录页面的修订历史,页面的各个版本都可以被获取。
2 B! |" [" B2 {: L3 Z- `  t4.开放性
3 N" M3 V2 ~6 u2 d+ b* y# k4 V9 G开放的:社群的成员可以任意创建、修改、删除页面。可观察:系统内页面的变动可以被访问者观察到。

4 P2 n) C+ t7 \5 {- U3 P
需要的模块" r) a* K' q( H" z& i$ _* [7 F
1.Freelinking (http://drupal.org/project/freelinking) Provides the ability to easilylink between pages/ ^. g2 z( O7 f
2.Markdown filter (http://drupal.org/project/markdown) Provides an easy, human-readable way to enter HTML formatting
- {: M6 Q- \1 U5 n) W3.Diff (http://drupal.org/project/diff)Shows color-coded list of changes between two revisions of content
, q0 q' f9 {0 V3 D4 M6 I8 ~4.Pathauto (http://drupal.org/project/pathauto)Automatically creates clean, search-engine-friendly URLs
% S) v7 g9 o  I3 |5.Token (http://drupal.org/project/token)A utility module to provide variables that are later replaced with dynamic bits,such as [user-name]
% ?) e. y% X4 A" e. _, W6.CCK (http://drupal.org/project/cck)

( v3 O- j' _; y) Z1 B- G0 f1 f
第一步:启用以下模块- v& a: `" K! q" q2 C7 l5 D

6 L+ Q$ W* h& t. H. I1 x1 N$ Z* ?diff
& V2 I, k  n+ y2 ^/ J8 B/ Y/ Pmarkdown% B' ~6 Y0 y* W9 \! O
pathauto/ T3 r6 `" o. y$ V
freelinking
% \7 L5 \* L- ztoken, t% D7 U& I2 k7 ~+ ~% I* D
content" k! p2 \5 x& X! g$ j  ?
content permissions. W# N* A5 d% `8 w

& i9 J$ @% k; `第二步:添加一个新的内容类型

Name: "Wiki page"  k0 I9 F/ S9 `/ f2 T
Type: wiki
; A9 t  d. o( T+ U; kDescription: "A page that any authenticated user may editand view changes."$ c3 [( R. Z. l
Workflow settings: in "Default options": uncheck "Promoted to front page", check "Create new revision"


  M4 J/ \3 B1 h. f+ m第三步:去掉作者信息的显示

Go to admin/build/themes/settings


2 O* S$ r' z6 P1 M1 [5 D. b; W* b第四步:权限设置( u! n  r2 U. n7 W! n- f
Set the permissions "create wiki content" and "edit anywiki content" for "authenticated user"  h$ b$ o) w% M% d
Set the permissions "revert revisions" and "view revisions"for "authenticated user"

& G' \; B. y% I1 N- g' r3 I
第五步:添加wiki输入格式
) R4 A- {2 y" N2 `5 eName: "Wiki"
7 M4 d! g/ }3 j, {8 b2 o0 kFilter: check "Markdown" and "freelinking filter", uncheck* c. y. E* {- A7 ]. `, Y3 q" o
others
/ Z; t" a  O6 ~1 W& H/ d
& \% l! a' R, R6 ?第六步:输入格式设置
+ G- U' y4 W7 {6 tGo to admin/settings/filters, set the "Wiki" filter to the Default format.


4 G; w* L# o& g9 V7 A第七步:freelinking设置
4 d. q' d$ I* q. ]3 S3 A$ H+ oGo to admin/settings/freelinking, change the "Default for new content" to "Wiki page".

% q; y* f7 u  t+ L( s3 H6 n2 M7 X& [4 @
第八步:pathauto设置3 |6 Z. P* o+ b4 H
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]".

, B7 r9 L7 ~+ E( t% D1 T4 B

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


$ E9 q( t. Z# q: y( b7 @- m
; |, @, h/ s( W0 h/ s2 D9 J

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

GMT+8, 12-18-2025 04:08 , Processed in 0.246536 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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