Copied to clipboard

Flag this post as spam?

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


  • Jon 47 posts 290 karma points
    Jul 20, 2016 @ 10:55
    Jon
    0

    From ID to URL

    I have this global field from a content-picker

    @CurrentPage.Site().addressLink
    

    But it only shows the ID of the node. I've tried placing a .Url in the end, but it seems that this isn't enough?

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jul 20, 2016 @ 11:01
    Alex Skrypnyk
    101

    Hi Jon,

    This field is storing id of node.

    If you need Url try to use:

    Umbraco.TypedContent(CurrentPage.Site().addressLink).Url
    

    Thanks,

    Alex

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jul 20, 2016 @ 14:23
    Alex Skrypnyk
    0

    Hi Jon,

    Did you solve your issue?

    As I see you are using dynamics in development - it's working but it's not perfect approach.

    Thanks,

    Alex

  • Jon 47 posts 290 karma points
    Aug 03, 2016 @ 12:35
    Jon
    0

    Sorry for the late reply!

    And I am new to Umbraco and MVC/razor – so theres still a lot to learn! I should be looking for a course :-)

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Aug 03, 2016 @ 13:52
    Alex Skrypnyk
    0

    You can watch Umbraco courses -

    http://www.umbraco.tv/

    Great Book - https://github.com/kgiszewski/LearnUmbraco7

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft