Allows editors to pick and sort multiple urls, it uses Umbraco's link picker which supports internal and external links and media.
v1.0.0 only works with Umbraco 7.1.2 and newer.
Install the package from the Umbraco package repository.
or
Install the NuGet package.
Create a new Data Type and select the "Multi Url Picker" property editor.
Add a reference to RJP.MultiUrlPicker.dll in your project
@{
var multiUrlPicker = Model.Content.GetPropertyValue<MultiUrls>("multiUrlPicker");
if (multiUrlPicker.Any())
{
<ul>
@foreach (var item in multiUrlPicker)
{
<li><a href="@item.Url" target="@item.Target">@item.Name</a></li>
}
</ul>
}
}
@{
var multiUrlPickerDyn = CurrentPage.multiUrlPicker;
if (multiUrlPickerDyn.Any())
{
<ul>
@foreach (var item in multiUrlPickerDyn)
{
<li><a href="@item.Url" target="@item.Target">@item.Name</a></li>
}
</ul>
}
}
See the changelog here