pagename
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pagename [2020-09-22 09:34] – removed cotkhilong | pagename [2023-01-01 21:03] – old revision restored (2022-08-05 23:44) bttr | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Page Names ====== | ||
+ | |||
+ | The pagename is the component of the URL that specifies the page. For example, the URL of the page you are currently reading is '' | ||
+ | |||
+ | ===== Naming Conventions ===== | ||
+ | |||
+ | [[Page]] names in [[DokuWiki]] are converted to lowercase automatically. Allowed characters are letters, digits and, within names ((i.e. you cannot start or end names with them, resp. they will be eliminated at start or end of names)), the " | ||
+ | |||
+ | When the [[config: | ||
+ | |||
+ | An implicit constraint on pagename lengths is set by [[backlinks]] (pagenames need to have 3 chars at least to be considered in backlinks). | ||
+ | |||
+ | Most templates, including the default, present somewhere the full pagename and the [[namespaces|namespaces]] in its path. The ' | ||
+ | |||
+ | When linking to other Wikis using [[InterWiki]] links the name restrictions of these Wikis apply. | ||
+ | |||
+ | Even when [[wp> | ||
+ | |||
+ | |||
+ | **Note:** All restrictions given here for pagenames do apply to media files as well! | ||
+ | |||
+ | |||
+ | ===== 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 '' | ||
+ | |||
+ | See [[namespaces]] for more details. | ||
+ | |||
+ | |||
+ | |||
+ | ===== Hacking the Core for mixed case names ===== | ||
+ | |||
+ | Some people like to hack the DokuWiki core to be able to use mixed case names. This is not recommended and not officially supported and might break DokuWiki functionality in non-obvious ways. | ||
+ | |||
+ | |||
+ | You can hack the code and by commenting out one line in the wiki/ | ||
+ | Look for this code and comment it out. | ||
+ | |||
+ | <code php> | ||
+ | $id = utf8_strtolower($id); | ||
+ | </ | ||
+ | |||
+ | :!: This hack, used by me a few years and announced to the User-Forum, seems not to work with Anteater. \\ | ||
+ | :?: Any idea, to have it there too? | ||
+ | |||
+ | Also see [[https:// | ||
pagename.txt · Last modified: 2024-04-15 08:04 by saggi