wiki:namespaces
Differences
This shows you the differences between two versions of the page.
| wiki:namespaces [2022/01/15 11:38] – created - external edit 127.0.0.1 | wiki:namespaces [2026/12/01 03:26] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== 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. | ||
| - | ==== Creating Namespaces ==== | ||
| - | Simply create pages with colons in the pagename. The token after the last colon will be the name of the page itself, while all other tokens are namespaces. All namespaces used in your pagename that don't exist already will be created automatically. | ||
| - | |||
| - | ^ Examples: | ||
| - | |example\\ .example\\ .: | ||
| - | |: | ||
| - | |..example\\ ..: | ||
| - | |wiki: | ||
| - | |ns1: | ||
| - | |.ns1: | ||
| - | |..ns1: | ||
| - | |.ns1: | ||
| - | |||
| - | ===== Deleting namespaces ===== | ||
| - | |||
| - | When all pages inside a namespace are removed (see [[page# | ||
| - | |||
| - | ===== 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. | ||
wiki/namespaces.1642246727.txt.gz · Last modified: by 127.0.0.1
