Copied to clipboard

Flag this post as spam?

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


  • Viktoriia H 5 posts 85 karma points
    Oct 01, 2021 @ 11:56
    Viktoriia H
    0

    UmbNavItem doesn't contain Link value

    Hi,

    I'm using UmbNav in my project and couldn't find out how to render external links (not Umbraco Content). It seems I need to use the URL property in UmbNavItem model, but it is not accessible for me. Is there any documentation how to get a Link value?

    enter image description here Thanks!

  • Aaron 59 posts 407 karma points MVP 2x c-trib
    Oct 01, 2021 @ 12:02
    Aaron
    100

    Have you tried using the .Url() extension?

    The .Url property is depreciated.

    If you are, could you provide some example code please :)

    The documentation can be found here: https://github.com/AaronSadlerUK/Our.Umbraco.UmbNav/blob/develop/docs/integration-guide.md

  • Viktoriia H 5 posts 85 karma points
    Oct 01, 2021 @ 12:21
    Viktoriia H
    0

    Hi Aaron - thanks for the quick reply! The .Url() extension works like a charm! Thank you :)

  • 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