Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
documentation:namespaces [2014/03/26 09:35] – milicic | documentation:namespaces [Unknown date] (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 pagenames are similar to files. Namespaces are used to categorize the pages and to restrict access to certain users and groups. The [[: | ||
- | ---- | ||
- | ===== Pagenames and Namespaces ===== | ||
- | You may picture namespaces as directories and pagenames as files inside them. | ||
- | |||
- | Therefore the '' | ||
- | |||
- | < | ||
- | |||
- | root namespace (always present) | ||
- | │ | ||
- | | ||
- | │ | ||
- | └── ' | ||
- | │ | ||
- | | ||
- | |||
- | </ | ||
- | |||
- | Note that you can have a pagename and a namespace with the same name, at the same time, within any namespace. Back to the above example, the '' | ||
- | |||
- | < | ||
- | |||
- | root namespace (always present) | ||
- | │ | ||
- | | ||
- | │ | ||
- | └── ' | ||
- | |||
- | </ | ||
- | |||
- | This doesn' | ||
- | |||
- | * In '' | ||
- | * In '' | ||
- | |||
- | ---- | ||
- | ===== Creating Namespaces ===== | ||
- | |||
- | You don't need to create namespaces separately; 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 by DokuWiki automatically. | ||
- | |||
- | A namespace can be created in the media manager after having selected a file on the local computer and before clicking | ||
- | |||
- | 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 [[.: | ||
- | |||
- | ^ Examples: | ||
- | |example\\ .example\\ .: | ||
- | |: | ||
- | |..example\\ ..: | ||
- | |wiki: | ||
- | |ns1: | ||
- | |.ns1: | ||
- | |..ns1: | ||
- | |.ns1: | ||
- | |||
- | :!: Gotcha: The syntax for relative and absolute internal links is non-unique and complex relative to directory and filename conventions. | ||
- | |||
- | Paths are absolute if and only if they begin with "/" | ||
- | |||
- | Links are absolute if and only if they have a ":" | ||
- | |||
- | Links relative to the current namespace may also begin with either " | ||
- | |||
- | ===== Deleting namespaces ===== | ||
- | |||
- | When all pages inside a namespace are removed (see [[page# |