DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:userpagecreate

userpagecreate Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

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: 2023-10-30 23:42 by Klap-in

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