Copied to clipboard

Flag this post as spam?

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


  • theevilgeek 15 posts 90 karma points
    Aug 31, 2009 @ 23:02
    theevilgeek
    0

    Get URL for Umbraco Node

    Hi all,

    I'd like to obtain the Umbraco URL for a particular document. It seems, in the source, that a bunch of different things are done to build up this URL. Is there a means of cleanly obtaining the URL that corresponds to a particular node/document as might be used to generate links without hardcoding their target?

    Thanks!

  • Soeren Sprogoe 575 posts 259 karma points
    Aug 31, 2009 @ 23:43
    Soeren Sprogoe
    101

    Hi there,

    what kind of details do you have on the doc you want to obtain the URL to?

    If you have the Node ID you can use umbraco.library.NiceUrl(ID);

    Best regards,
    SoerenS

  • theevilgeek 15 posts 90 karma points
    Aug 31, 2009 @ 23:48
    theevilgeek
    0

    Soeren -- that's precisely the method I was looking for. Thanks so much!

Please Sign in or register to post replies

Write your reply to:

Draft