Skip to content

rasmusjp/umbraco-multi-url-picker

Repository files navigation

Multi Url Picker for Umbraco 7

NuGet release Our Umbraco project page

Allows editors to pick and sort multiple urls, it uses Umbraco's link picker which supports internal and external links and media.

Installation

Install the NuGet package.

or

Install the package from the Umbraco package repository.

Usage

Add a new property to your document type and select the Multi Url Picker property editor in the pickers category.

If you're using the models builder, you can access the property on your model e.g. Model.Links if your property alias is links.

@{ var links = Model.Links.ToList(); }

@if (links.Count > 0)
{
  <ul>
    @foreach (var item in links)
    {
      <li><a href="@item.Url" target="@item.Target">@item.Name</a></li>
    }
    </ul>
}

If Max number of items is configured to 1

@if(Model.Link != null)
{
  <a href="@Model.Link.Url" target="@Model.Link.Target">@Model.Link.Name</a>
}

Changelog

See the changelog here

About

Multi Url Picker for Umbraco 7

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 12

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy