Copied to clipboard

Flag this post as spam?

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


  • Maff 141 posts 466 karma points
    Jan 27, 2015 @ 11:20
    Maff
    0

    Best way to get a Content Item in Contour Custom Workflow?

    Hi,

    I have added a Contour custom workflow step, and I'm getting a Content Item using the NodeFactory:

    var myEvent = new umbraco.NodeFactory.Node(eventId);

    This works fine, but I was just wondering if this is the best code to use, or if there is a better method?

    Thanks,

    Maff

  • Sören Deger 733 posts 2844 karma points c-trib
    Jan 27, 2015 @ 11:32
    Sören Deger
    100

    Hi Maff,

    you can use IPublishedContent for reading from cache:

    http://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/

     

    Or you can use ContentService for reading from Database:
    http://our.umbraco.org/documentation/Reference/Management-v6/Services/ContentService

     

    Best,

    Sören 

  • Maff 141 posts 466 karma points
    Jan 27, 2015 @ 11:38
    Maff
    0

    Awesome - thanks Sören! Exactly what I was looking for :)

  • 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