Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
Awesome - thanks Sören! Exactly what I was looking for :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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
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
Awesome - thanks Sören! Exactly what I was looking for :)
is working on a reply...