Copied to clipboard

Flag this post as spam?

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

  • Hannes 5 posts 75 karma points
    Sep 03, 2018 @ 09:07

    Multi Url Picker not working after upgrade


    So I've recently upgraded from Umbraco 7.2.8 to 7.12.1, which means i had to upgrade my RJP.MultiUrlPicker, which now works differently.

    Some info:

    • var homepagenode = Umbraco.TypedContentAtRoot().Where(t => t.DocumentTypeAlias == "Home").FirstOrDefault();
    • var youtubeNode = homepagenode.Descendant("Youtube");

    This used to work:

    • youtubeNode.GetPropertyValue<MultiUrls>("channelLink").FirstOrDefault()?.Url

    I've tried both these, which haven't worked:

    • youtubeNode.GetPropertyValue<IEnumerable<Link>>("channelLink").FirstOrDefault()?.Url
    • youtubeNode.GetPropertyValue<Link>("channelLink")?.Url

    The weird thing is, if I do this:

    • var contentService = ApplicationContext.Current.Services.ContentService;
    • contentService.GetById(youtubeNode.Id).GetValue<string>("channelLink")

    I get the following:

        "name": "JustMoney Youtube",
        "url": "",
        "target": "_blank",
        "icon": "icon-link"

    Any idea as to why "Link" is not working?

    I urgently need some help please!

  • Alex Skrypnyk 6083 posts 23481 karma points MVP 6x admin c-trib
    Sep 03, 2018 @ 10:56
    Alex Skrypnyk

    Hi Hannes

    What error did you get?


  • Hannes 5 posts 75 karma points
    Sep 03, 2018 @ 11:01

    Hi Alex

    In the case of the single item , it returns null and IEnumerable returns a list with 0 items.. no errors.


Please Sign in or register to post replies

Write your reply to: