Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Create a namespace
Avatar
knorpen #1
Member since Jan 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Create a namespace
Hi

I must configure my dokuwiki totaly wrong or i have missunderstod the koncept of namespaces.

I cant create a namespace, it pissible that I do it wrong.

I create ha link like this:

[[:example]]

Have tried to make a namespace with a sub page

[[:example:subpage]]

What am i doing wrong ?
Avatar
ChrisS #2
Member since Sep 2006 · 91 posts
Group memberships: Members, Wiki Managers
Show profile · Link to this post
Your syntax is correct.  These are other posibilities ...

[[namespace:page]]
[[.:namespace:page]]

The namespace isn't created until you create a page in the namespace.

The wiki way of working is to edit an existing page and place links in that page to your new pages.  Then click on those links and write each page.  That way your wiki grows outwards and every page is linked.
Avatar
knorpen #3
Member since Jan 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
Hi

I tried your examples, I understand the filosofi about creting links, and then crate sub pages.

How do I no that the namespace its created ?
I have wath the directory fore dokuwiki, a sub directory have been created fore the example I tried, Its it working it the subdirectory i created ?

I have seen som link, fore example:
http://sitename.com:namespace:pagename

But that does not work fore me..

I want to have the opertunity to change permissions fore a specifik namespace, is that posible ?
Avatar
knorpen #4
Member since Jan 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
Hi , I have solved the problem "can't create namespaces" problem. It was no problem =) . I can create namespaces with no problem, but I do have problem with the links in the URL bar. I fauth that it was posible to make a direct url/link to a namsespace like this: www.sitename.com:namespace:pagename , Am I wrong here ?

I also haves some problems to set diferent access to diferent namespaces, I have read the manuel, but it dident work. I now the solution now, it was the template I used, it dident work corekt with dokkuwiki (http://www.zenzire.com/mmclean) I diden't get the options to chose another namespace in the ACL configuration. But it I switch to the default template it works.

//micke

ps. I'm really bad in english spelling ds.
Avatar
ChrisS #5
Member since Sep 2006 · 91 posts
Group memberships: Members, Wiki Managers
Show profile · Link to this post
Also take a look at "URL rewriting" or "nice urls".  Rewriting is necessary to allow your webserver to know what to do when it receives a request for http://www.mysite.com/namespace:page.
Avatar
sjones #6
Member since Feb 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Every 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
lupus #7
Member for 3 months · 1 post · Location: Canada
Group memberships: Members
Show profile · Link to this post
I had problems creating namespaces - I followed the instruction on a youtube tutorial which advised to create a namespace say London>Olympics with a file filename all you do is use Capital Letters for folders (namespaces) and ordinary letters for filenames.  So type in London:Olympics:filename in the search bar and this would create the namespace structure for you (once you save some text in filename).  However this did not work on my wiki.  Instead it produced :london_olympics_filename and when I clicked on it it created the file london_olympics_filename

After a bit of playing around and some searching in here, I discovered that to do this: just don't use Capital Letters.  Instead in the search bar type london:olympics:filename and that will produce namespaces london and subnamespace olympics and the file filename in there.

This is probably very basic info = sorry if this is explaining how you suck chocolate, but I was stuck for quite a while looking for a solution (although I learned a lot of other useful wiki stuff in the process) so have posted this in case it helps other beginners.


Competence level - beginner
Avatar
Michaelsy #8
Member since Jun 2015 · 782 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
@lupus Thank you for sharing your experience!
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
floppie #9
Member for 2 months · 1 post
Group memberships: Members
Show profile · Link to this post
In reply to post #7
I have been looking for this too. So many thanks to explain this.
It should be more obvious NOT to use capitals, because it really make no sense from my perspctive not to use capitals.
Even better: The program should have no problems with using capitals, or give a message if you do so.

Using capitals and create an underscore ??? Really ???
Avatar
andi (Administrator) #10
User title: splitbrain
Member since May 2006 · 3409 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by floppie:
Even better: The program should have no problems with using capitals, or give a message if you do so.

See https://github.com/splitbrain/dokuwiki/pull/2667
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
EliS #11
Member for a month · 1 post
Group memberships: Members
Show profile · Link to this post
Hi there,

i have created a new spacename following the howto.
i can t see this new spacename in the left menu.
but see it  in the sitemap.
and i can see the created pages in this new spacename using the url

any idea please ?

thanx for your help !
Avatar
turnermm (Moderator) #12
Member since Oct 2009 · 4598 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
What is the 'left menu' and how did you get it?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
StarArmy #13
Member since Nov 2011 · 74 posts
Group memberships: Members
Show profile · Link to this post
Sidebar contents are not automatically generated, but you can use an add-on like nspages to automatically list the contents of your wiki in the sidebar page if you like new pages to show up there (probably this makes sense only for smaller wikis). For the root namespace, the location of the sidebar is just :sidebar

See:

https://www.dokuwiki.org/faq:sidebar

https://www.dokuwiki.org/plugin:nspages
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: 2019-04-20, 00:33:05 (UTC +02:00)