Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Every Wiki Page is a New Namespace
Avatar
sjones #1
Member since Feb 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Every Wiki Page is a New Namespace
I think I may be confused about namespaces.

When I create a link to another topic from within a page every page is created as a new namespace off the root directory.  I would have expected the pages to become nested namespaces within the page. 

Is the expected behavior of DokuWiki?

Do I need to do something special to create namepaces?


--- This represents an wiki page with several links ---
--- This wiki is in namespace: best_practices
[[coding_standards | Coding Standards]]

[[testing_standards | Testing Standards]]

This will result in 2 new namespaces (coding_standards, testing_standards) created off the root namespace.  I wanted the pages to be nested in best_practices namespace which I can accomplish with the following code:


--- This represents an wiki page with several links ---
--- This wiki is in namespace: best_practices
[[best_practices:coding_standards | Coding Standards]]

[[best_practices:testing_standards | Testing Standards]]

I would have expected the pages to automatically fall under the best_practices namespace without verbosely specifing.  If I wanted these pages as standalone namespaces I would have expected to create the links as follows:


--- This represents an wiki page with several links ---
--- This wiki is in namespace: best_practices
[[:coding_standards | Coding Standards]]

[[:testing_standards | Testing Standards]]

Am I mis-understanding the usage of namespaces?
Is it considered bad form to have every page a root level namespace?
Avatar
zyberdog #2
Member since Oct 2006 · 25 posts · Location: Denmark
Group memberships: Members
Show profile · Link to this post
You can think of pages as files and namespaces as folders. That is actually what they are in the file structure behind DokuWiki.

Instead of explaining it here, I think the following two pages in the wiki namespace describe it quite well.

http://wiki.splitbrain.org/wiki:pagename
http://wiki.splitbrain.org/wiki:namespaces
Avatar
sjones #3
Member since Feb 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
OK - I understand Namespaces are directories and pages are files.

But everytime a new internal link is created [[new_link]], and the "Create new page" button is pressed, this always creates the new page in the root Namespace, even if I have already navigated multiple links (pages) to get to the page where the "new_link" reference was created.

Is this desirable?  It seems like this will create a very flat Wiki file structure.  While be it, easy to access...
Avatar
BlackFog #4
Member since May 2006 · 95 posts
Group memberships: Members
Show profile · Link to this post
Look closer at the examples of "Creating Namespaces", it's pretty straight forward.


BlackFog
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-27, 20:09:11 (UTC +01:00)