Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > get edit version of document View modes: 
User avatar
Member
Member
Allan - 5/31/2012 9:14:05 PM
   
get edit version of document
Hi,

When under workflow (no check-in/out), is it possible to get the current edit version of the document using SelectSingleNode or SelectSingleDocument method ?

I am trying to generate PDF based on current document version (unapproved or edited) but when I use SelectSingleNode, Im always getting the published/approved contents. Basically I want to show first a generated PDF before the document gets approved/published/or sumit for approval so the CMS editor can make necessary adjustment on the document content prior to approval.

I already tried setting the CMSContext.ViewMode = ViewModeEnum.Preview; similar to Preview mode but it doesn't work.

Any idea?


User avatar
Member
Member
Allan - 5/31/2012 11:13:33 PM
   
RE:get edit version of document
never mind.. i already got it working using

node = VersionManager.GetVersion(node.DocumentCheckedOutVersionHistoryID);

happy kentico coding!