How to allow select user (similar to pagePicker)?

Hi,

I have a page class that has ‘list of user’ as one of the properties. I would like to create a form that allows user to select users as owner of a document.
I imagine the behavior will be similar to pagePicker, when you type the name the suggestion would show up.

Is there an existing plugin for this, or any suggestion to implement this using velocity? Thanks!

Hi @samsun387!

You could start by looking at https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/FrontendResources/AutoSuggestWidget/#HSuggestUsersorGroupsfromthewiki.

You don’t need to do anything special, the List of Users property has an associated displayer that shows a user picker in edit mode. See https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/DataModel/ . You just need to display your property as per https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/FAQTutorial/FAQTutorialManual#HCreatethePageDesignSheet

$doc.display('listOfUsersPropertyName')