Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Mar 19, 2014 @ 23:03
    Tom
    0

    Morten/Sebastiaan: ContentService - GetUrl from Node

    Hi just wondering the best convention to get a url of an item you retrieve via the ContentService?

     

    at the moment umbraco.library.NiceUrl(content.Id) seems to be a way to do it but umbraco context is null...

     

    any other suggestions?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 20, 2014 @ 12:09
    Jeroen Breuer
    100

    Hello,

    It's a long topic, but I think it's what you're looking for: http://our.umbraco.org/forum/developers/api-questions/48886-Getting-the-url-for-an-IContent-object

    Jeroen

  • Tom 713 posts 954 karma points
    Mar 20, 2014 @ 23:04
    Tom
    0

    Hi Jeroen,

    Thanks for steering me in the right direction. Now time to try and get the ContentService to save and publish from a command line. That's not working in v7.0.2

     

Please Sign in or register to post replies

Write your reply to:

Draft