Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
What is a "start page"?
Avatar
borekb #1
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Subject: What is a "start page"?
There is a configuration option http://www.dokuwiki.org/config:startpage which is described like this:

This is the name of the default page in each namespace (including the root namespace,) which is loaded when no page name is given.

What does the "when no page name is given" part means? When I visit http://mydokuwiki/wiki:syntax, it loads a syntax page as expected but I'm not quite sure how to visit a namespace. If I visit http://mydokuwiki/wiki, it says the page doesn't exist and I can create one. If I do so, there is a new "wiki" page in the root namespace and not a "wiki:start" page.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 2326 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
You can address a page as follows:
http://your_wiki.com/doku.php?id=ns:

Or in a page:
[[ns:|new page]]

In either case, when the page is accessed, you will get
ns:start

By default the start page is 'start', but you can name it anything that is convenient to your site.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #3
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Hm, doesn't really work on my fresh installation. When I visit

http://mywiki.com/doku.php?id=playground:

I am redirected to

http://mywiki.com/doku.php?id=playground%3Bplayground

Even on the DokuWiki homepage, if I visit www.dokuwiki.org/config:, I get the www.dokuwiki.org/config page instead.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 2326 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Try wiki: or new_ns:
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #5
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Ahh, it works on wiki. Why does it not work on dokuwiki.org/config: or playground: ?
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 2326 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Don't really know.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Andreas (Moderator) #7
Member since Dec 2009 · 264 posts · Location: Karlsruhe, Germany
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #5
Quote by borekb:
Why does it not work on dokuwiki.org/config: or playground: ?

AFAIK: if a page with the same name of namespace beneath the namespace exists, it is interpreted as "start" page alternative:
  • playground(->ns):playground(->page) exists by default
  • playground(->ns):start(->page) does not exist
  • That is why "playground:" refers to "playground:playground"
I'm so electronic I shit bits
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 2326 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Where would this notation be  useful.  It isn't really something most users would use.  But I suppose it might have some use in some plugins?
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Andreas (Moderator) #9
Member since Dec 2009 · 264 posts · Location: Karlsruhe, Germany
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I personally do not use it. But e.g indexmenu utilizes it.
I'm so electronic I shit bits
Avatar
HansBKK #10
Member since Nov 2011 · 104 posts · Location: Bangkok
Group memberships: Members
Show profile · Link to this post
In reply to post #8
Yes, rather than a standard pagename (used for every namespace) like "start", "home" or "index", many people/systems will use the convention of using a file with the same name as the "container".

Then there is the question of location - should this "head page" be located *within* that container (in DW's case, filesystem folder = namespace), or *above* it in the parent, at the same level as the container? I ended up choosing the latter in my implementation.

My post here http://forum.dokuwiki.org/post/28248 gives more detailed examples in the course of asking questions that I ended up answering myself, but anyone with comments or questions (here or there) would be most welcome.
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-23, 17:39:41 (UTC +02:00)