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 733 posts 2844 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 1614 posts 4131 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 733 posts 2844 karma points c-trib
    Jan 20, 2012 @ 16:33
    Sören Deger
    0

    Thank you, it's very easy :-)

Please Sign in or register to post replies

Write your reply to:

Draft