Entity Picker

Configure and use the Entity Picker property editor in Umbraco UI Builder to select entities from a collection.

The Entity Picker property editor allows selecting one or more entities from an Umbraco UI Builder collection.

Configuring an Entity Picker

To configure an entity picker, follow these steps:

  1. Go to the Settings section in the Umbraco backoffice.

  2. Create a New Data Type.

  3. Select UI Builder Entity Picker from the Property Editor field.

Data Type config
  1. Enter a Name for the picker and click Save.

  2. Select the Section the collection is located in.

  3. Select the Collection to pick the entities from.

  4. [Optional] Select a list view Data View, if configured.

  5. Enter a Minimum number of items and Maximum number of items that can be selected.

  6. Click Save.

After defining the entity picker Data Type, add it to the desired Document Type.

Document Type config

Using an Entity Picker

The entity picker functions similarly to the content picker.

To pick an entity, follow these steps:

  1. Go to the Document Type where the entity picker Data Type is added.

  2. Click Add to open the picker dialog, displaying a paginated list of entities.

  3. [Optional] If searchable fields are configured, use the search input field to filter results.

Entity picker dialog
  1. Click on the entity names.

  2. Click Submit. The picker displays a summary of selected entities, which can be reordered by dragging them.

  3. Click Save or Save and publish to save the changes.

Entity picker values

Retrieving the Value of an Entity Picker

The entity picker property editor includes a built-in value converter. Retrieving the property value from Umbraco returns the selected entities, converting them to the relevant type.

// Example
foreach(var p in Model.People){
    ...
}

Last updated

Was this helpful?