Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Customize Workflow.Publish event

$
0
0
HiI want to reflect the page contents in other languages ​​on the same page when I publish on the workflow applied page. We added processing by hooking workflow.publish event in GlobalEvent. So we were able to deploy pages to another language using DocumentHelper.InsertNewCultureVersion.However, when publishFrom of the page is set to the future date or PublishTo is made the past date, the workflow.publish event does not occur. The workflow.Approved event was hooked so we incorporated the same workflow.Approved event. Then the specification of the TreeNode instance for specifying the copy source page and the copy destination page returns NULL. Does anyone know this cause? In the TreeNode instance, nodes are acquired in the following way.TreeNode page = tree.SelectNodes () .Path (e.Document.NodeAliasPath) .OnSite (@sitename@) .Culture (@en-us@) . FirstObject;TreeNode publishPage = DocumentHelper.GetDocuments () .WhereEquals (@NodeAliasPath@, e.Document.NodeAliasPath) .OnSite (@sitename@) .Culture (@en-us@) .FirstObject;

Viewing all articles
Browse latest Browse all 8832

Trending Articles