====== How to create user homepages ====== | Author: | [[oliver.geisen@kreisbote.de|Oliver Geisen]] | | Overview: | Create homepages for dokuwiki-users without the need of complex ACLs | | Based on: | dokuwiki-2006-03-09 | | Plugins needed: | none | **:!: Please note: This TIP is a simple hack. It would even be better to think all over and find a better solution to provide homepages for users, especially the way to authorize the namespaces they are in. Maybe a variable like %USERID% could be used in ACL.** ===== Motivation ===== We (dokuwiki admins) want to give our dokuwiki-users the ability to create their own homepages. These should be in their own responsibility and therefore in their own namespace. The user may create as many pages as he want inside this namespace (Think twice: "should'nt there be some kind of quota ?"). Each user created with the usermanager should be provided with a namespace dedicated to him and a simple starting template. Also there should be a "My page" button in the navigation bar, so users can easily access their pages. ===== How is it all done ? ===== Each page the user see's is requested from the browser like: http:///doku.php?id= doku.php itself will initialize some environment, sets global variables, checks ACLs and will then call main.php from the currently selected template, which is found at: lib/tpl/