ASPX templates
Version 5.x > ASPX templates > Display Previous Version View modes: 
User avatar
Member
Member
mark.withers-oakwood-dc - 6/4/2010 6:32:57 AM
   
Display Previous Version
Is there a way of displaying a previous version of a document?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 6/4/2010 12:13:00 PM
   
RE:Display Previous Version
Hi,

You can use following method to get any version of the document:

CMS.WorkflowEngine.VersionManager.GetVersion(Int32, TreeNode) 

public TreeNode GetVersion(
int versionHistoryId,
TreeNode sourceNode
)


I hope this will help you.

Best regards,
Miroslav Remias.