Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 726 posts 2833 karma points c-trib
    Jan 20, 2012 @ 16:05
    Sören Deger
    0

    How I get current node url in custom datatype?

    I have create a custom datatype with c# and I can get a lot of properties of the current node.

    But how I get the url of current node?

     

    Sören

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 20, 2012 @ 16:15
    Stefan Kip
    0

    Using umbraco.library.NiceUrl(nodeId). But this will only work if the node has been published (else it doesn't have a url).

  • Sören Deger 726 posts 2833 karma points c-trib
    Jan 20, 2012 @ 16:33
    Sören Deger
    0

    Thank you, it's very easy :-)

  • 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