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-03-24 19:59] Klap-intips: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====
-[[devel:develonly]] 
  
 The [[config:showuseras]] config setting can be set to "User's full name as interwiki user link". Setting this option will display all the usernames in the wiki with a link to the ''user:<loginname>'' page.  The [[config:showuseras]] config setting can be set to "User's full name as interwiki user link". Setting this option will display all the usernames in the wiki with a link to the ''user:<loginname>'' page. 
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=====
Line 41: Line 43:
   * [[:Namespace templates]] for prefilling content in new pages   * [[:Namespace templates]] for prefilling content in new pages
  
 +\\ \\ 
  
 ===== How To: Autocreate homespace for users ===== ===== How To: Autocreate homespace for users =====
Line 46: Line 49:
 |:!: Please move this example into a plugin. | |:!: Please move this example into a plugin. |
  
-Use case: Because users are not able to create own namespace in "user:" our wiki setup we must provide them one. Best place to do this is when adding the user with the usermanager. The usermanager is a default plugin of DokuWiki and it's code is found at:+Use case: Because users are not able to create an own page in namespace "user:" in our wiki setupwe must provide them one. Best place to do this is when adding the user with the usermanager. The usermanager is a default plugin of DokuWiki and it's code is found at:
  
   lib/plugins/usermanager/   lib/plugins/usermanager/
  
-You can create the functionality by doing changes in ''[[https://github.com/splitbrain/dokuwiki/blob/master/lib/plugins/usermanager/admin.php|/lib/plugins/usermanager/admin.php]]'':+You can create the functionality by doing changes in ''[[xref>lib/plugins/usermanager/admin.php]]'':
  
 === append new function === === append new function ===
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