Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
use cases of having multiple startpage
Avatar
Digitalin #1
Member since Feb 2014 · 158 posts
Group memberships: Members
Show profile · Link to this post
Subject: use cases of having multiple startpage
Hello,

I have made some research about startpage in the forum and documentation but did not find infos about this topic.
According to this thread about the plugin discussion, it was the first time I saw a behavior where there is a possible use case of having multiple startpages.

But I wonder what are the others use cases and advantages for that.

I also think to a possible use case of a special behavior of sidebar and dokuwiki hooks with startpage.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 3829 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I'm not sure if this is what you are looking for.  But, Dokuwiki has a mechanism for assigning a sidebar to a namespace and a startpage to a namespace.  So, you can create a sidebar and/or a startpage for any namespace. And when the namespace does not have its own startpage and/or sidebar, these both default of the sidebar and startpage of the root namespace.  These can be  useful in large wikis with multiple sections.

See: https://www.dokuwiki.org/faq:sidebar#sidebar_by_namespace

See: https://www.dokuwiki.org/config:startpage
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Digitalin #3
Member since Feb 2014 · 158 posts
Group memberships: Members
Show profile · Link to this post
Hello turnermm,

Thanks to reply,
And when the namespace does not have its own startpage and/or sidebar, these both default of the sidebar and startpage of the root namespace ...
From my experience, it is only if there is an other sidebar in one namespace that you change the root default sidebar. Adding a startpage doesn't change this behavior :
:sidebar for :* including startpage
:foo:start have also the sidebar from root
:foo:sidebar to have other sidebar for the foo namespace including foo:start

As said in the doc, the nearest sidebar will be used. I don't see relation and/or with startpage but I may be wrong or have misunderstood what you explain.

After some confusions I have made with sidebar and startpage, I wrote the section #sidebar by namespaces and posted on forum to be sure before adding on official documentation.
As you know, sidebar as wiki page becomes a larger concept with boostrap3 template that includes navbar, rightsidebar, pageheader, pagefooter.... and it is effectively usefull. I use sidebar in this meaning of DokuWiki hooks for the rest of this post.

My first error was to use the startpage as a namespace and the second was to think that a startpage was needed to trigger sidebar by namespaces, so I have created as much startpages needed to each created sidebar (not a real problem anyway). In any case, always trust the official doc and read it with the finger, if needed (RTFM) :-)

As I understand, startpage works as a default page  according to webserver directive ( for instance in Apache).
One startpage is "needed" at the root (at least proposed by default config). For a wiki, with a large amount of namespaces, it could be useful in case of broken links (the nearest startpage will be searched if I anderstand well), and ..., this was  my question: what are  (others) advantages to have multiple startpages ?

When I have noticed that Discussion plugin behaves differently with startpages (see at this end of this thread), I thought it was an another possible use case. Are others plugins behave this way, considering startpages as different from others pages ?

Meanwhile, I thought that it could be interesting to have a special behavior for the startpage with sidebar:

1) sidebar doesn't apply to a startpage  if there is one
2) sidebar could have its own sidebar different to the sidebar of the namespace

1)
foo:sidebar applies to foo:* up to meet inside the namepace another sidebar (normal behavior)
foo:start has no sidebar


2)
it is already possible to do so but not at same level

foo:sidebar applies to foo:*
foo:welcome:sidebar
foo:welcome:start for having a startpage different


it could be
foo:s_sidebar that only applies to start
foo:start
foo:sidebar for all foo:* except start


It could be an option in config manager. Current behavoir by default or sidebar with start page  as described.

1) seems not possible at this moment and 2) would be simplified (same level)

Just an idea.
Sorry for this long post and thank you for attention :-)
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 3829 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
As said in the doc, the nearest sidebar will be used. I don't see relation and/or with startpage but I may be wrong or have misunderstood what you explain.


I may not have been clear.  The sidebar and the startpage are independent of one another.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
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: 2017-09-21, 01:49:09 (UTC +02:00)