DokuWiki

It's better when it's simple

User Tools

Site Tools


config:sepchar

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
config:sepchar [2009-08-04 23:23] achconfig:sepchar [2022-06-04 09:20] (current) – old revision restored (2014-08-20 14:40) schplurtz
Line 1: Line 1:
 ====== Configuration Setting: sepchar ====== ====== Configuration Setting: sepchar ======
  
-This variable determines the character that separates words in a page ID and that replaces characters not valid in a page ID.+This variable determines the character that separates words in a [[:pagename]] and that replaces characters not valid in a pagename.
  
   * Type: Character (letter, digit, '_', '-', or '.')   * Type: Character (letter, digit, '_', '-', or '.')
Line 7: Line 7:
  
  
-The page ID is the component of the URL that specifies the page.  For example, by default the link [[doesn't exist|doesn't exist]] goes to the URL ''dokuwiki.org/doesn_t_exist'' ''wiki:doesn_t_exist'' is the page ID.  The default sepchar is '_', so the apostrophe and the space each appear as an '_' in the link.+The pagename is the component of the URL that specifies the page.  For example, by default the link [[doesn't exist|doesn't exist]] goes to the URL ''dokuwiki.org/doesn_t_exist'' ''wiki:doesn_t_exist'' is the pagename.  The default sepchar is '_', so the apostrophe and the space each appear as an '_' in the link.
  
-By changing sepchar to another character, you can change the '_' to another character.  The valid sepchar characters are those that are valid in a page ID: letters, digits, underscore (''_''), dash (''-''), and dot (''.'').  The sepchar variable must contain **exactly** one character.+By changing sepchar to another character, you can change the '_' to another character.  The valid sepchar characters are those that are valid in a pagename: letters, digits, underscore (''_''), dash (''-''), and dot (''.'').  The sepchar variable must contain **exactly** one character.
  
-//Be careful with this variable.//  By changing it you can make pages created under a previous sepchar inaccessible.  When you create a new page, the page ID becomes the file name for the page.  If you create pages with sepchar '_' and then later use sepchar '-', your links to those previously created pages will break because the links will change but the file names won't.+//Be careful with this variable.//  By changing it you can make pages created under a previous sepchar inaccessible.  When you create a new page, the pagename becomes the file name for the page.  If you create pages with sepchar '_' and then later use sepchar '-', your links to those previously created pages will break because the links will change but the file names won't.
  
 {{:config:warning.png  }} **Warning**: Changing this option could cause unintended behaviour. {{:config:warning.png  }} **Warning**: Changing this option could cause unintended behaviour.
config/sepchar.1249420986.txt.gz · Last modified: 2009-08-04 23:23 by ach

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