Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Problem with content staging for documents without previos versions View modes: 
User avatar
Member
Member
g.luparia - 4/2/2012 2:59:23 AM
   
Problem with content staging for documents without previos versions
Good morning,
we are experiencing one problem with Kentico 5.5 R2 Build: 5.5.4268. In certain conditions, the Content Staging task makes the document in production not visible.

Steps to reproduce the problem:
- Be in a standard staging-production configuration
- The document in production must not have versions. This is the normal condition if you apply one workflow to a document which is published with no previous workflow applied
- Apply a workflow to the document
- Edit the document in staging and assign a "publish from" date in the future
- Execute the content staging tasks
- RESULT: the document in production becomes in state Published, but it's not published until the "Publish from" date is reached. Previous content is not published.

Temporary fix:
We have to "touch" each document (make a dummy edit) and publish it after having applied the workflow to create a previous version for every document, so that the editors will be able to safely program publish dates for their changes.

This solution is time costly because the "touch" part must be done on each document. Is there any quicker method to solve the issue?

Thanks in advance and best regards,
Giorgio

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/3/2012 3:26:20 AM
   
RE:Problem with content staging for documents without previos versions
Hello,


we were writing via e-mails, for other visitors:

The worflow should be established before you create the documents. You can update the documents by API when you encounter this situation (you add a new workflow and need to create the first version of documents). Please see here: API examples managing documents for a sample code.


Best regards,
Helena Grulichova