Multi Url Picker
Schema Alias: Umbraco.MultiUrlPicker
UI Alias: Umb.PropertyEditorUi.MultiUrlPicker
Returns: IEnumerable<Link> or Link
Multi Url Picker allows an editor to pick and sort multiple URLs. It returns either a single item or a collection. This depends on the "Maximum number of items" Data Type setting. When that is set to 1, it returns a single item, otherwise a collection. Multi URL Picker allows editors to select and sort multiple URLs. The property returns either a single item or a collection, depending on the Maximum number of items setting in the Data Type configuration.
When the maximum is set to 1, it returns a single item.
When the maximum is greater than 1, it returns a collection.
The URLs can point to internal, external, or media items.
Data Type Definition Example

Content Example

MVC View Example
Without Models Builder
This example handles the case of Maximum number of items set to 1:
With Models Builder
And here is the case of Maximum number of items set to 1:
Add values programmatically
See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the Content Service.
If Models Builder is enabled you can get the alias of the desired property without using a magic string:
Last updated
Was this helpful?