DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:userpagecreate

userpagecreate Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin Creates a user page or user namespace when a user first logs in

Last updated on
2021-07-15
Provides
Action
Repository
Source

Similar to userpage

Tagged with home, page, users

This plugin creates a userpage for users on their first login.

Installation

A CosmoCode Plugin

Install the plugin using the Extension Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Configuration

The plugin adds three options to the config manager:

  • target: The user page ID prefix
    • You probably want to configure a namespace here, using a trailing colon. A common option is to set this to user:
  • template: The user page template (page or namespace)
    • Either a single page that is copied for the user (eg. template:userpage)
    • Or a full namespace hierarchy that is copied (eg. template:user:)
      • This requires a namespace in the above option
      • The template namespace should have startpage
  • create_summary: The summary for the page creation(s)
    • The default is probably fine unless you want to localize it
  • delete: If user pages should be deleted on user deletion
    • If you set this, all pages for the user, including their old revisions will be deleted permanently when the user is deleted

In the template pages, all template replacement patterns can be used. Further patterns can be used if your auth-backend provides them (e.g. LDAP).

Template Example

  • In this page you can use all the normal syntax/markup your wiki and your installed plugins support

In the example below syntax from the plugins do, nslist, starred and changes is used.

====== @NAME Dashboard ======
===== ToDO =====
{{dolist>:?user=@user@&status=undone}}
 
===== ToDos Created =====
{{dolist>:?creator=@user@&status=undone}}
 
===== pages in your namespace =====
 
{{nslist>.}}
 
===== Your Favorites =====
{{starred}}
 
===== Newest Pages in this wiki =====
{{changes>type=create&count=4}}
 
===== New Blogpost in our company's blog =====
{{rss>http://link.to.your/company/blog 3}}

Additional Setup

Once you have user pages, you probably want to use them whenever user names are displayed in the Wiki. For example in changelog.

To do so, switch the showuseras config to “username_link” and reconfigure the user interwiki link if necessary.

plugin/userpagecreate.txt · Last modified: 2021-07-15 23:51 by andi