Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Can't a namespace also be a page?
Avatar
Tabasko #1
Member since Apr 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't a namespace also be a page?
Hello DokuWiki Community!

I just discovered this Wiki and am really impressed.
Especially the "namespace" System is something, I find really usefull, because a Hierarchy is essential for the Wiki I have in mind.
But there is one thing, that seems kinda odd to me..

Can't a namespace also be a page?

For example, take the Dokuwiki-Wiki itself, and go to the Sitemap.
When I am intrested in the Category Plugins, i go to the Namespace "plugins", but when I click on it, aall the possible Plugins, more Namespaces and different Stuff drop down. The Overview Page to Plugins has nothing to do with the Plugin-Namespace and can be found at the bottom of the list in a pool of uncategorized Pages.

So I would want some of my Namespaces to have a Main Page, that represents that Namespace.
Is this possible?

Best regards, Tabasko
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 2319 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
A namespace is the equivalent of a directory.  However there is no reason that you can't have a page in your  namespace which has the same name as the namespace.  But every namespace has a page name which is the default page name, which is the same for all namespaces, whether or not this page has been created. This page name is start. So, if you access a namespace without a page name appended to it, you will get namespace:start.  It's this protocol which accounts for the fact that the first page that opens, when you first access your new Dokuwiki, is start.

 You can change the default page name in the configuration manager.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Tabasko #3
Member since Apr 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hey, thank you for your fast response.

So if I put a page named start inside a namespace, it will be the default page for this namespace.
But still, I dont really know how to access a namespace, because when i make a link to "namespacetitle" a new page called namespacetitle will open up.

Additionally, I dont want a bunch of same called pages in my wiki which makes searching impossible.
I fear this is the wrong wiki for me.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 2319 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
A namespace is identified by having a colon after its name:
id=namespace:

Or if you have the useslash configuration option set set to true:
id=namespace/

The same principle would apply if you were using nice urls, for instance:
doku.php/other_ns/
which would translate to:
doku.php/other_ns/start

__________________
Edit:
start is just the default page name.  Normally, you would create pages with their own identities and link to them either through a menu or the sitemap or with links inserted into your pages.  You can also find templates with sidebars that give you the option of creating in effect indexes from which to link to your pages.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2012-04-26, 17:44 by turnermm.
Avatar
Taggic (Moderator) #5
Member since Jan 2011 · 738 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post #3
I dont want a bunch of same called pages in my wiki which makes searching impossible

If you are using the useheading configuration than the first headline of your page is shown on search results instead of "filename" start.
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
Avatar
Tabasko #6
Member since Apr 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hmm, but there is no real reason to call any page start, if a namespace cant be linked to.

So my Solution would be, just to put a MainPage with the Same title as the Namespace inside the Namespace.
And instead of the usual Overview Page i should make a Sidebar with a "selfmade" Index, that I have to keep on time myself.

Is it possible, that this Sidebar can change in different Namespaces?
And that the Page, that is currently open looks selected in the index?
(Like Forum looks selected at the top of this page)

Thanks for the help so far, maybe these namespaces arent so bad :)
Avatar
dominik #7
Member since Apr 2009 · 384 posts · Location: Berlin, Germany
Group memberships: Members, Wiki Managers
Show profile · Link to this post
checkout the navi plugin
Avatar
HansBKK #8
Member since Nov 2011 · 104 posts · Location: Bangkok
Group memberships: Members
Show profile · Link to this post
http://www.dokuwiki.org/namespaces#namespace_default_linking

Takeaway - as long as the "start" page doesn't exist, you can use a same-name-as-namespace "head page" instead, either in the namespace itself or in the parent. My preference is for the latter.

There may be further details available here assuming they are still? be relevant:
 http://forum.dokuwiki.org/post/30606
 http://forum.dokuwiki.org/post/28248
Avatar
Tabasko #9
Member since Apr 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Default linking and the navi Plugin could be a solution, i will try it out once the wiki is up and running.

Thank you for your help :D
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, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-16, 18:11:43 (UTC +02:00)