But before you go trough all the work, what is your use case? Why do you need to pick Users and where? I’m thinking that maybe there is a simpler solution.
I asked for the use case as most of the time when we ie. build something with an "Author" etc. we find that we need more information (ie. a bio, a picture, a description) and we often end up putting a content item in the tree for this and then link this to the User so I figure that this could have been an option in you case.
Can a multi user picker be created in Umbraco 8?
Hi, I'm looking to see if a multiple user picker can be created in Umbraco.
The built in property editors only have a single User picker. https://our.umbraco.com/Documentation/Fundamentals/Backoffice/property-editors/built-in-property-editors/User-Picker/
Can anyone help me with this?
Thanks in advance.
Hmm, there might be some specified property editor package - not sure. Did just find a very old one for v4.
There is also this article for V7: https://www.bizicbojan.com/post/2015/01/29/umbraco-7-multi-user-picker.aspx
But I would vote for https://github.com/leekelleher/umbraco-contentment/
You can easily create your own “Data List Source”, we example here https://github.com/leekelleher/umbraco-contentment/blob/develop/src/Umbraco.Community.Contentment/DataEditors/DataList/DataSources/UmbracoMemberGroupDataListSource.cs
But before you go trough all the work, what is your use case? Why do you need to pick Users and where? I’m thinking that maybe there is a simpler solution.
Hi Markus,
Thanks for your reply.
I'm trying to create a page to display a group of people belonging to a particular community.
So I need a UI to choose which users belong to that community. Thats where I will be using the multi user picker.
For now - I created a nested content with the user picker as an element. From there I can choose multiple users.
However this doesnt allow me to choose multiple users at a time.
Hi!
Waoow! Nested Content is a great solution for this =D Creative! =D Also good to avoid external dependencies if not needed.
If you really need a "Multi User Picker" I would create a Data List Source with Contentment, I added a discussion about this here:
https://github.com/leekelleher/umbraco-contentment/discussions/136
I asked for the use case as most of the time when we ie. build something with an "Author" etc. we find that we need more information (ie. a bio, a picture, a description) and we often end up putting a content item in the tree for this and then link this to the User so I figure that this could have been an option in you case.
All the best!
Hi!
Following up on this one, Lee has added a source for Users that will be included in a upcoming release:
https://github.com/leekelleher/umbraco-contentment/discussions/136#discussioncomment-1426217
...and it's been released in Contentment v2.2.0! 😃
is working on a reply...