Kentico CMS 7.0 Developer's Guide

Versioning

Versioning

Previous topic Next topic Mail us feedback on this topic!  

Versioning

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The versioning functionality in workflows stores document versions as documents are edited. Versioning enables viewing and comparing document versions and rolling documents back to previous versions.

 

Versioning is closely tied to the workflow module. To use versioning on documents, you need to apply a workflow on them. If you don't want documents to go through any workflow process and use versioning at the same time, refer to the Versioning without workflow topic.

 

Version numbering

 

Every document version is identified by a version number. By default, the system assigns numbers to versions automatically according to the following rules:

 

When you create a document, it gets version number 0.1.

When you save a document, a minor version is created and the number after the period increases. Example: 0.2, 0.3, etc.

When you publish a document, the latest minor version gets promoted to a major version. The number before the period increases and the number after the period resets to zero. Example: 1.0, 2.0, etc.

 

If you use content locking, you can disable the automatic numbering in Settings -> Content -> Content management, by turning off the Use automatic version numbering setting.

 

Viewing and comparing document versions

 

1. Navigate to the document that you want to view versions of.

 

2. Switch to Properties -> Versions.

 

3. Click View View next to the version you want to view. The Document version window opens.

 

4. Select a version for comparison using the Compare to drop-down list. When comparing document versions, the older version appears on the left.

 

Rolling back versions

 

1. Navigate to the document that you want to view versions of and switch to Properties -> Versions.

 

2. Click Undo Roll back next to a version. The system will make a copy of the version and mark the copy as the latest version.