namespaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
namespaces [2017-09-22 09:26] – [Manual way] 113.21.228.134 | namespaces [2017-12-05 01:07] – 2a02:a03f:1e23:f800:9120:e686:999a:544d | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Namespaces ====== | ||
- | ===== Creating Namespaces | + | A namespace is similar to a directory or folder, while pages are similar to files. |
+ | In [[DokuWiki]] | ||
+ | |||
+ | A default DokuWiki installation comes with the built-in namespaces: //wiki// and // | ||
+ | ===== | ||
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 6: | Line 11: | ||
All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically. | All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically. | ||
- | A namespace can be created in the media manager after having selected a file on the local computer and adding a '' | + | A namespace can be created in the media manager after having selected a file on the local computer and adding a '' |
In DokuWiki pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also [[.: | In DokuWiki pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also [[.: | ||
Line 34: | Line 39: | ||
===== How to rename namespaces? ===== | ===== How to rename namespaces? ===== | ||
+ | ==== Manual way ==== | ||
+ | In order to rename a namespace manually you will have to: | ||
+ | * Rename the folders that represent the namespace in: | ||
+ | * '' | ||
+ | * '' | ||
+ | * Remove metadata for the namespace under '' | ||
+ | * Remove attic data for the namespace under '' | ||
+ | | ||
+ | For example, on a Unix host, you could: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * move: '' | ||
+ | Note that the '' | ||
+ | * Correct (by editing them) all the links to the pages under the //moved// namespace (you can discover those before moving the namespace by reviewing each page's [[backlinks]]). | ||
+ | * Browse each and every page under the new namespace. This will create the missing indexing information and metadata for the pages under the moved namespace. | ||
+ | |||
+ | However, you will still have lots of junk left around. For example in '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * Browse each and every page of your Wiki. | ||
+ | |||
+ | DISCLAIMER: I understand this is convoluted (and maybe I missed/ | ||
+ | |||
+ | ===== Namespace Default Linking ===== | ||
+ | |||
+ | It is possible to link to the default file of a namespace by ending the linkid | ||
+ | with a colon: %%[[foo: | ||
+ | existence of certain named files. For %%[[foo: | ||
+ | checked: | ||
+ | |||
+ | < | ||
+ | foo: | ||
+ | foo:bar:bar | ||
+ | foo:bar | ||
+ | </ | ||
+ | |||
+ | The pages are checked in that order and whatever page is found first will be linked to. [[config: | ||
+ | |||
+ | DokuWiki supports [[doku> | ||
+ | For example this is a link to Wikipedia' |
namespaces.txt · Last modified: 2024-02-26 13:38 by bartv