We have moved!

You are currently looking at documentation for Umbraco 8 and older versions.
An automated guess is that docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-property-editors/multi-url-picker/index-vpost7_14 could be the link to the new documentation for Umbraco 9 and newer versions.

    Multi Url Picker

    Alias: Umbraco.MultiUrlPicker

    Returns: IEnumerable<Link> or Link

    Multi Url Picker allows an editor to pick and sort multiple urls. This property editor returns a single item if the "Maximum number of items" data type setting is set to 1 or a collection if it is 0. These can either be internal, external or media.

    Data Type Definition Example

    Related Links Data Type Definition

    Content Example

    Media Picker Content

    MVC View Example - value converters enabled

    Typed

    @using Umbraco.Web.Models
    @{
        var links = Model.Content.GetPropertyValue<IEnumerable<Link>>("footerLinks");
        if (links.Any())
        {
            <ul>
                @foreach (var link in links)
                {
                    <li><a href="@link.Url" target="@link.Target">@link.Name</a></li>
                }
            </ul>
        }
    }
    

    If Max number of items is configured to 1

    @using Umbraco.Web.Models
    @{
        var link = Model.Content.GetPropertyValue<Link>("link");
        if (link != null)
        {
        <li><a href="@link.Url" target="@link.Target">@link.Name</a></li>
        }
    }