User Displayer Macro

Last modified by Andreea Popescu on 2021/03/17 21:01

cogUser custom displayer macro with scope (local, global, both)
TypeXAR
Category
Developed by

Flavius Olaru

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Custom displayer wiki macro to be used in List of Users properties. The major difference between this macro and the default List of Users displayer bundled with the standard XWiki Enterprise Manager is that it adds the ability to access and display global users in a sub-wiki. This is done by using the "scope" parameter.

userpickercustom.png

Inline mode display:
userdisplayerinline.png

View mode display:
userdisplayerview.png

Usage

Download the XAR then use the macro in the "Custom display" section of your "List of users" class property.

{{userDisplayer scope='global' /}}
 Parameter  Value  Description
 scope  local/global/both 

scope='local' : only local users (sub-wiki users)
scope='global' : only global users (main-wiki users/workspace users)
scope='both' : both local and global users

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v1.0

4.4.1 tested
4.5.2 tested

Get Connected