Question

I am working on Ektron 8.6.

How can i retrive the previous version of a Content by passing the Content Id using API? Previous version in the sense the content data before editing(there may be multiple edits for a content).Is it able to retrieve these different versions through API?

Whether any utility is there in ektron to directly convert Content to a doc?

Was it helpful?

Solution

Here's a sample:

var contentManager = new ContentManager();
var historyList = contentManager.GetHistoryList(contentId);
foreach(var historyData in historyList)
{
     var contentData = contentManager.GetContentByHistoryId(historyData.Id);
}

The relevant namespace you'll want to take can be found here: Ektron.Cms.Framework.Content.ContentManager.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top