I'm trying to create/update document and then publish it. All works fine in CMS but when I tried to get that document on live site, I still see old version.The page type is CMS.File and file returned while opening this page on live site is different what I can see in CMS.I tried with this code:var workflowManager = WorkflowManager.GetInstance(tree);
var settingsWorkflow = workflowManager.GetNodeWorkflow(node);
if (null != settingsWorkflow)
{
// node.Update();
DocumentHelper.UpdateDocument(node);
node.Publish(string.Format(@Automatically published {0} page.@, node.DocumentName));
}
else
{
DocumentHelper.UpdateDocument(node);
}
Documents are published but latest changes are not available on live site.I also tried with this code:https://devnet.kentico.com/questions/how-to-publish-or-unpublish-document-from-user-control-or-custom-moduleAnd nothing seems to work.
↧