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 gang,
Not sure if this is the right forum, so let me know if not.
I am creating some content using ContentService and then publishing it with PublishWithStatus
Once this is complete I get a status to tell me if it succeeded or not.
After the publish has finished, how can I get the IPublishedContent version of the content?
Thanks, Sam
When you create an IContent, it should have an ID (maybe after saving/publishing... I forget). That is the ID of the node. You should then be able to use UmbracoHelper.TypedContent to get the IPublishedContent version by passing in that node ID.
OK cool.
Thats what I have been doing but I wanted to make sure there wasn't a better way :)
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get IPublishedContent from IContent after publish
Hi gang,
Not sure if this is the right forum, so let me know if not.
I am creating some content using ContentService and then publishing it with PublishWithStatus
Once this is complete I get a status to tell me if it succeeded or not.
After the publish has finished, how can I get the IPublishedContent version of the content?
Thanks, Sam
When you create an IContent, it should have an ID (maybe after saving/publishing... I forget). That is the ID of the node. You should then be able to use UmbracoHelper.TypedContent to get the IPublishedContent version by passing in that node ID.
OK cool.
Thats what I have been doing but I wanted to make sure there wasn't a better way :)
Thanks
is working on a reply...