Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • SW 12 posts 74 karma points
    4 days ago

    multi url picker to display child pages - Umbraco 10

    I'm trying to use the Mulit Url Picker for Umbraco 10. I'm wanting it to display the children of each link selected as well. I've been struggling to get it to display. this is what i have for the parent level so far.

    @using Umbraco.Cms.Web.Common.PublishedModels;
    @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
    @using Umbraco.Cms.Core.Models
     var links = Model.Value<IEnumerable<Link>>("rightNavigation");
     @if (links.Any())
            @foreach (var link in links)
                <li><a href="@link.Url" target="@link.Target">@link.Name</a></li>
Please Sign in or register to post replies

Write your reply to: