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
I am using the Content Service to output a set of all content nodes, most nodes are in a published state and some have been un-published - I have no problem differentiating between them and can retrieve a clean set of published nodes.
My problem comes when a previously published node has been updated, saved - but the saved changes have not yet been published.
The API seems to tag 'starred' nodes as unpublished and my filter ignores them.
Ideally I need a way to identify these nodes and to retrieve the last published state of them - any ideas?
Did you manage to solve this problem? Is there any one who has the answer?
Published version has Published property == true
So you can get last published version this way:
var versions = ApplicationContext.Services.ContentService.GetVersions(content.Id).OrderByDescending(v => v.UpdateDate).ToList();
var publishedVersion = versions.FirstOrDefault(n => n.Published);
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted