[dokuwiki] Re: what is the startpage of a whole dokuwiki?

  • From: Guy Brand <gb@xxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 21 Feb 2006 22:36:23 +0100

On 21 février at 21:08, peter pilsl wrote:

> www.mydomain.com
> So my $conf[start]=''

  This is certainly a very bad idea.

> Then I created a namespace  mystuff.  So www.mydomain.com/mystuff leads 
> me to startpage of the namespace mystuff, which is called mystuff.txt 
> and I can assign accessrights and so on.

  How have you "created" that mystuff namespace? You are probably
  using url rewriting (and useslash), so when you request
  www.mydomain.com/mystuff Dokuwiki looks for a page mystuff.txt
  located in the root namespace of your dokuwiki installation.

> www.mydomain.com  leads to this startpage and its named  .txt  and I 
> cannot accessrights to it (guess cause it does not have name).

  Because you set $conf[start] to an empty string.

> How can I give the startpage a name?  I tried to set $conf[start] but 
> this is not what I was looking for. After setting it to "startpage" all 
> links to the top or to the mainpage were set to 
> www.mydomain.com/mystuff/startpage. This is not what I wanted.

  If this is what you have than your root namespace is /mystuff/

> i) when accessing the root of my dokuwiki I want to have the content of 
> one special namespace displayed

  You don't seem to understand what a namespace really is. If you're
  familiar with Unix, a namespace is a subdirectory of
  /place-where-dokuwiki-is-installed/data/pages/

  When accessing the root of your dokuwiki, you see the root namespace
  of your dokuwiki installation, that is the content of the
  data/pages/$conf[start] page. That's the use of the $conf[start]
  variable.

> ii) I want to be able to give the startpage a proper name, so I can give 
> accessrights to it.  Actually the only way to give accessrights to the 
> startpage is via the *-namespace and this is not what I want. Everyone 
> should be able to read my startpage, but I want accessrestrict certain 
> namespaces.

  This is easy using ACLs:

  *                 @ALL        1
  restricted1:*     @ALL        0               
  restricted1:*     @user       4               

  With these ACLs, the root namespace (dokuwiki-install/data/pages/)
  is readable by anyone, while dokuwiki-install/data/pages/restricted1
  (subdir or namespace) is only accessible (read-write) for the
  members of the group "user".

  gb

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: