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
    May 15, 2024 @ 19:15
    SW
    0

    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())
          {
          <ul>
            @foreach (var link in links)
               {
                <li><a href="@link.Url" target="@link.Target">@link.Name</a></li>
               }
               </ul>
           }
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies