DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:homepages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tips:homepages [2014-09-02 14:06] – [ACL for user pages] wildcards are supported 2001:4dd0:fd3b:0:9ae:d933:89fe:aac6tips:homepages [2020-05-12 17:10] – to allow user:%USER% page, AUTH_DELETE is needed gholk
Line 1: Line 1:
 ====== How to create user homepages ====== ====== How to create user homepages ======
  
-DokuWiki can be configured that it links user's name to a user's personal wiki page. Additionally the ACL rights for these user pages can be set precisely to your wishes. +DokuWiki can be configured so that it links user's name to a user's personal wiki page. Additionally the ACL rights for these user pages can be set precisely to your wishes. 
  
 ==== User's name linking to homepages==== ==== User's name linking to homepages====
Line 11: Line 11:
 The access permissions for the user pages can be set with some configuration lines. The Access Control List (ACL) of DokuWiki can handle two placeholders ''%USER%'' and ''%GROUP%''. The placeholders are replaced by the loginname or respectively the group of current logged-in user. This allows to define generally with some lines for all users the wanted read and write access. The access permissions for the user pages can be set with some configuration lines. The Access Control List (ACL) of DokuWiki can handle two placeholders ''%USER%'' and ''%GROUP%''. The placeholders are replaced by the loginname or respectively the group of current logged-in user. This allows to define generally with some lines for all users the wanted read and write access.
  
-<del>Currently ''%USER%'' and ''%GROUP%'' cannot be used via the [[plugin:config|Config Manager]]. Therefore you need to manually modify the file ''conf/acl.auth.php'' to add the lines using them.</del> +Currently ''%USER%'' and ''%GROUP%'' cannot be used via the [[plugin:config|Config Manager]]. Therefore you need to manually modify the file ''conf/acl.auth.php'' to add the lines using them. 
-The newest version of dokuwiki supports these wildcards.+
  
 **Tip:** Create first the desired line for one user page using the Config Manager. Next you modify the user page config line by replacing the loginname by the ''%USER%'' placeholder. **Tip:** Create first the desired line for one user page using the Config Manager. Next you modify the user page config line by replacing the loginname by the ''%USER%'' placeholder.
Line 20: Line 19:
 # Additional lines for conf/acl.auth.php : # Additional lines for conf/acl.auth.php :
 # #
-# user can modify/delete his/her page+# user can modify/delete page in his/her namespace
 user:%USER%:         %USER%  AUTH_DELETE  user:%USER%:         %USER%  AUTH_DELETE 
 +# user can create/delete his own page
 +# (AUTH_EDIT is not enough, because page is not exist before)
 +user:%USER%            %USER%  AUTH_DELETE
 # all logged-in users can read the user pages # all logged-in users can read the user pages
 user:                @user   AUTH_READ user:                @user   AUTH_READ
Line 33: Line 35:
 See at [[:namespace templates]] how to create your namespace template. When you create a template for the default ''user:<loginname>'' pages, you want to create e.g. ''user:_template.txt'' via your filesystem.  See at [[:namespace templates]] how to create your namespace template. When you create a template for the default ''user:<loginname>'' pages, you want to create e.g. ''user:_template.txt'' via your filesystem. 
  
-**Tip:** When you like modify the namespace template via the browser, you need the plugin [[plugin:Templatepagename]]. This plugin let you configure via the [[plugin:config|Configuration manager]] a page name that is recognized as template page. Default ''c_template'', but of course you can choice your own name.+**Tip:** If you would like to modify the namespace template via the browser, you need the plugin [[plugin:Templatepagename]]. This plugin lets you configure via the [[plugin:config|Configuration manager]] a page name that is recognized as template page. Default ''c_template'', but of course you can choice your own name.
  
 =====See also===== =====See also=====
tips/homepages.txt · Last modified: 2020-05-12 17:11 by gholk

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki