DokuWiki

It's better when it's simple

User Tools

Site Tools


namespaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
namespaces [2017-09-22 09:23] – [Namespace Default Linking] 113.21.228.134namespaces [2017-10-14 11:09] – [Creating Namespaces] 82.77.133.61
Line 1: Line 1:
 +vodamarc.camelia
  
-===== Creating Namespaces =====+A namespace is similar to a directory or folder, while pages are similar to files. 
 +In [[DokuWiki]]  you can use namespaces to categorize your pages. For names of namespaces the same restrictions hold as for [[pagename|pagenames]]. 
 +  
 +A default DokuWiki installation comes with the built-in namespaces: //wiki// and //playground//. This is a [[logs:website|Test]] 
 + 
 +vodamarc.camelia
  
 You don't need to create namespaces separately; simply create pages with colons in the [[pagename]].  You don't need to create namespaces separately; simply create pages with colons in the [[pagename]]. 
Line 65: Line 71:
 DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of [[plugins]] that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually. DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of [[plugins]] that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually.
  
 +===== Namespace Default Linking =====
 +
 +It is possible to link to the default file of a namespace by ending the linkid
 +with a colon: %%[[foo:bar:]]%%. Which page the link links to is dependent on the
 +existence of certain named files. For %%[[foo:bar:]]%% the following pages are
 +checked:
 +
 +<code>
 +foo:bar:$conf['start']
 +foo:bar:bar
 +foo:bar
 +</code>
 +
 +The pages are checked in that order and whatever page is found first will be linked to. [[config:autoplural|Autoplural]] linking is not done for those links.
  
 +DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis.
 +For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
namespaces.txt · Last modified: 2024-04-18 14:58 by 136.226.109.24

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki