How can I get data of original document when I copy the document content to a new culture version?

HelenaG Grulichova asked on April 5, 2011 08:35

How can I get data of original document when I copy the document content to a new culture version?

Correct Answer

HelenaG Grulichova answered on April 5, 2011 08:35

If you copy the document content from another language in CMSDesk, you can get data of original document in the OnAfterInsertNewCultureVersion method of CustomTreeNodeHandler like:

string sourceDocumentId = HttpContext.Current.Request.QueryString["sourcedocumentid"];
TreeProvider treeProvider = (TreeProvider)tree;
TreeNode sourceNode = DocumentHelper.GetDocument(Convert.ToInt32(sourceDocumentId), treeProvider);

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.