当前位置:网站首页>Management and use of DokuWiki

Management and use of DokuWiki

2022-07-05 08:05:00 Car chezi


dokuwiki It is very suitable to be the knowledge base of small and medium-sized teams , Deploy on the company's intranet . Considering the current situation of my company , In my submission dokuwiki It should have the following functions :

  1. knowledge management . For precipitation and sharing of knowledge , Everyone can create pages , You can also edit the page by multiple people ; The historical version can be traced , recoverable . Pages can reference each other .

  2. A tree structure .

    Teacher Yang Zhiping mentioned in his blog :

    I mentioned it many times MIT Cognitive scientist Joshua B. Tenenbaum Published in PNAS The paper of ( The discovery of structural form ) in , Different representation structures of abstract knowledge are compared …… Finally realized , The best knowledge structure of human is tree structure . Only tree structure , It is the structure that most conforms to the characteristics of human cognition , From the top to the bottom of the tree , Is the only channel , It is convenient for the brain to quickly extract knowledge from the bottom of memory , In line with the human brain is a cognitive miser characteristics ; The tree is also the most elegant structure with both horizontal and vertical expansion capabilities .

    ——Zotero(2): As a knowledge management tool Zotero - Yang Zhiping's blog

  3. Rights management . such as Leaders Have permission to delete pages , Ordinary members can only create , But you can't delete . Another example A The staff of the Department can't see B Page of Department .

  4. Document management . You can upload documents to the server , Pages can reference documents ; Searching documents is convenient ; There is an interface for managing documents , It is easy to add, delete, modify and check .

  5. Uploading attachments is convenient . When editing a page , You can easily insert pictures , Upload attachments .

  6. Downloading files is convenient .

  7. If there is PDF、DOC It's better to wait for the preview of the format .

Let's say one by one , have a look dokuwiki Whether these functions are supported , How to do it if you don't support .

about 1,dokuwiki Naturally . About version control , Later, a special section will be devoted to .

about 2, Actually dokuwiki The page storage of is a tree structure , We just need a plug-in indexmenu, Show the directory tree , See later “ plug-in unit indexmenu”、“ Add page ”

about 3,dokuwiki It is also natural support , I'll talk about it later .

about 4, See later “ Upload documents ”、“ References in the page ”、“ Document management ”

about 5, Uploading attachments has been said , Insert the pasted picture with a plug-in imgpaste, Please refer to my last blog post .

about 6, It's simple , Click the link to .

about 7,PDF It comes with preview , Other formats don't seem to preview .

version control

DokuWiki Store every Wiki All versions of the page , Allows users to compare the current version with any historical version . Used and MediaWiki Similar difference engines ( Software that compares the differences between versions ). Through the timing locking mechanism , It can prevent conflicts when different users edit the same page .2012 year 1 In the new version released in September , Added media file version control .

Click... On the right side of the page “ A revision history ”, Here's the picture

 Insert picture description here

Click the glasses icon to see the difference , When I first used this function , It's really amazing to me .

 Insert picture description here

References between pages

You can use grammar

Internal links are created by using square brackets. You can either just give
a [[pagename]] or use an additional [[pagename|link text]].

You can also use buttons

 Insert picture description here

plug-in unit indexmenu

Download address : https://www.dokuwiki.org/plugin:indexmenu

The most useful part of this plug-in is that it can add a navigation list in the sidebar .

Setup method : After installation , stay sidebar Add... At the end of the page
{ {indexmenu>:}}

 Insert picture description here

Add page

The upper left corner of the picture above , There is a gadget for adding pages , Because I installed addnewpage plug-in unit

Download address :http://www.dokuwiki.org/plugin:addnewpage

For the setting method, please refer to my last blog post .

stay wiki Anywhere on the page { { NEWPAGE }}, To get a new page title text input box and a namespace selection drop-down menu . They usually put it in sidebar page .

You can select a namespace from the drop-down menu , Then enter the page name , Create a new page , The system will directly jump to the new page for you to edit . You can also create namespaces and pages at the same time , Separate with English colons , For example, enter :

research institute : Institute of physics : Condensed matter physics

This will create a namespace research institute , Subnamespace Institute of physics , Last in Institute of physics Now create a page Condensed matter physics

Delete page

Delete the content of the article , The page is automatically deleted . Namespaces without articles will also be automatically deleted .

Upload documents

 Insert picture description here

Click this button to upload files .

 Insert picture description here

When you upload it , Pay attention to namespaces , See if it's what you want .

First , Select local file , Then confirm the namespace . If you want to create a namespace , Then use the colon syntax introduced above , For example, I want to create a namespace chezi, Then manually add chezi:

Finally, click upload .

Because it is uploading media files , Instead of creating pages , You can't see the new namespace in the sidebar , You need to click media manager .

 Insert picture description here

You can see chezi Successfully created .

References in the page

It's still the button just now , Search the file you want to reference , Just click on the file name .

 Insert picture description here

At this time, the text edit box will be automatically inserted

{ { : Software Department : Protocol group :chezi:the_eighty_five_percent_rule_for_optimal_learning.pdf |}}

The effect after saving is :

 Insert picture description here

Document management

Let's start with searching documents , It's very simple , Enter keywords in the search box in the upper right corner . I'm not going to do that here .

 Insert picture description here

dokuwiki The built-in interface for managing documents is “ Media Manager ”

 Insert picture description here

 Insert picture description here

In fact, the functions are relatively complete , Such as the Upload 、 Search for 、 Delete 、 history etc. .

But I found a shortcoming , Just can't show all the files , It can only be displayed by namespace , Only one namespace can be displayed at a time .

How to show all the documents at once ? There's a plug-in :filelisting

Download address :https://www.dokuwiki.org/plugin:filelisting

I added a page in the root namespace , It's called file directory , Enter { {filelisting}}

That's how it works :

 Insert picture description here

After all, you can show all the documents .

Filter In this box, you can enter the file name to filter .

User management

 Insert picture description here

 Insert picture description here

there “ Group ” Let's explain .

In user management , Users always belong to a group . There are two groups that are a little special :

  • @ALL. everyone , Even people who are not logged in , All belong to this group . You can use this group to restrict everyone's access ( As default ), Then relax permissions for specific users .
  • @user. All self registered users , All belong to this group by default . Use this group to give “ Logged in ” User permissions . The name of this group can be passed Default group Options configuration . With virtual “ALL” Different groups ,“user” Groups are real groups , It is the group that all users join by default when using the simple authentication backend . If you use a different authentication backend , You need to use the groups provided by this backend .

Inside and ACL( Access control list ) Manager , Group by “@” Prefix and group name .

When adding users , There is no need to create a group name in advance , Just enter the new group name .

Rights management

You can refer to https://www.dokuwiki.org/zh:acl

Let's talk about it briefly .

Access control can be targeted at page perhaps Namespace . share 7 Species jurisdiction : nothing Read edit establish Upload Delete as well as management . High permissions will include low permissions , Read is the lowest privilege , Delete is the highest permission . It should be noted that , establish 、 Upload and delete permissions can only be applied to namespaces .

The rules set for the namespace will also be applied to the media files and pages under it .

When Dokuwiki When checking what permissions it should give users , It will use all the rules that match the user and his group . The finally applied permission rules are selected in the following ways :

  • The closer the application scope of the rule is to the specified page , The higher the priority —— We call it “specific matching”
  • When the application scope of multiple rules is the same , The rule that gives the highest authority will be adopted .

Want to easily add new rules or change existing rules , You need to use “ management ” Menu ACL Manager . Here's the picture :

 Insert picture description here

 Insert picture description here

Be careful : Deleting permissions only affects media files . Pages can be deleted ( And recovery ) This belongs to editing permission . People with upload permission but no delete permission cannot overwrite existing media files .

Basically , Add a new ACL Rules have three steps :

  1. Select the namespace or page to be restricted from the tree navigation bar in the upper left corner
  2. Select the application you want ACL Regular groups or people
  3. Set the appropriate permissions

Existing rules can be found in ACL Modify or delete in the table below the manager .

An example is given , Let's see. . The list of rules is as follows :
 Insert picture description here

This time we look what rules will match for different users when trying to access the page private:bobspage.

When accessing namespaces private Under the bobspage On the page , Let's see what rules apply to each user .

  1. abby, Ordinary users

    According to her group ,#1, #2, #4 All match ; The closer the application scope of the rule is to the specified page , The higher the priority , So apply the rules #4, therefore abby’s permissions level is 0

  2. bob, Ordinary users

    #1, #2, #4, #6 All match ,#6 The corresponding range exactly matches the specified page , therefore bob’s permission level is 16

  3. bob Forgot to sign in , But to visit private:bobspage.

    #1 & #4 matching ,#4 The scope of is closer , therefore bob’s permission level while not logged in is 0

  4. charlie, @staff A member of the group

    #1 - #5 this 5 All the rules match ,#4 and #5 The corresponding range is closest to the specified page , According to when the application scope of multiple rules is the same , The rule that gives the highest authority will be adopted , So apply the rules 5,charlie’s permission level is 16

Advanced topics : Can be in acl Use user wildcards in , This article is omitted .

Back to real application , For businesses , Is often A Departments cannot access B Page of Department , vice versa . For this application scenario , How to set ACL The rules ?

As I said before :

@ALL. everyone , Even people who are not logged in , All belong to this group . You can use this group to restrict everyone's access ( As default ), Then relax permissions for specific users .

in other words , The guiding ideology is to be lenient before being strict

 Insert picture description here

explain :

  1. about @ALL, The default rule is read
  2. For hardware groups @hw, stay “ Hardware Department ” This namespace has the highest permissions
  3. For information confidentiality , about @ALL, stay “ Hardware Department ” This namespace does not have permission

thus , Only the hardware group @hw Of users can access “ Hardware Department ” This namespace . The setting of the software department is similar , I won't go into that .

Log in as a member of a hardware group , You can see :

  1. Only in Hardware Department Add pages to the namespace
  2. Out of sight Software Department The page of

 Insert picture description here

Empathy , Log in as a member of a software group , You can see :

  1. Only in Software Department Add pages to the namespace
  2. Out of sight Hardware Department The page of

 Insert picture description here

Of course , To achieve this effect , There must be other ways to make rules , This article is just a introduction .

【end】

原网站

版权声明
本文为[Car chezi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140546257983.html

随机推荐