Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Automatic ACL for first page in namespace
Avatar
cjohnsonuk #1
Member since Dec 2013 · 38 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Subject: Automatic ACL for first page in namespace
Is it possible to automatically set the ACL for the first page in a new namespace. 
I'm creating a set of documents. 
Each set will be in its own namespace.
Each set will have a start page that will detail the intended audience, approval status, completion status, summary , recent edits etc
The start page should be visible to all.  The other pages will have their ACL set according to who should see them.

e.g when I create a new namespace with a new start page (eg from a form in bureaucracy ) I want that page to be public so that people can see what the namespace contains but can't necessarily access the rest of the pages until specifically granted permissions.

Or would it be easier to have all the "start" pages in their own namespace with links through to a per document name space?

Can ACLs automatically be set on a page when they are created ?? I couldn't find anything in plugins when searching but maybe I'm not using the right keywords.
Avatar
MartinR #2
Member since Jul 2015 · 190 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Is it possible to automatically set the ACL for the first page in a new namespace
I'm not aware that this could be done automatically.

The start page should be visible to all.  The other pages will have their ACL set according to who should see them.
You need to set an ACE for the directory and another for the start page.  When access is considered and ACE on the start page will trump over the directory's (namespace's) ACL.

Or would it be easier to have all the "start" pages in their own namespace with links through to a per document name space?
I suspect that this will be much easier to maintain.

Can ACLs automatically be set on a page when they are created ?
This is a repeat of the first point.  You could set up a simple script to do this for you but otherwise the pages will be within the namespace and use the appropriate ACL.
Avatar
andi (Administrator) #3
User title: splitbrain
Member since May 2006 · 3538 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
DokuWiki considers different pages the start page depending on what exists. See https://www.dokuwiki.org/namespaces#namespace_default_link…

For your usecase you could have all your start pages in the root namespace (readable for all) and your namespaces could still be restricted. So you'd have a page foobar and all your documents would be in foobar:*.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
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: 2020-04-02, 22:18:36 (UTC +02:00)