Compare versions of content

  • Updated

In the compare view in Optimizely Content Management System (CMS) you can compare content and properties between specific versions to see what has changed. When you compare content, the On-page edit view displays two page versions side-by-side. Properties are compared in the All properties edit view.

Image: Toogle button for compare view Toggle the Compare different versions button on the toolbar to turn the compare view on and off.
Image: Compare in All Properties view The Select compare mode button appears in the compare view and shows the selected compare mode; that is, if you are comparing content or properties. This selection is sticky, which means that whatever mode was used the last time you did a comparison is preselected the next time you turn on the compare feature.
Image: Compare in On-Page edit view Click this button to display a drop-down list where you can change compare mode:

Image: Drop-down menu to change compare mode

The notification bar displays two drop-down lists from which you can choose which versions to compare. By default, the draft is shown in the left pane and the currently published version in the right. All language versions of the content are listed by default.

Compare content

When you compare content, the On-page edit view shows two versions side-by-side. You can scroll and resize the panes.

When you edit a published version in the left pane, a new draft is created and displayed in the version list. It works in a similar way as you edit content directly on the page, and when you are done, you can publish a draft, or republish a previous version.

Image: Comparing content

Compare language versions when translating content

The current language is selected in the language selector list, and you can filter the versions by language. You can compare versions made in the same language, or in different languages.

By comparing versions made in different languages, you can translate the content in the left pane side-by-side with the published version of the current language. You can also jump between languages to edit by selecting the current language in the version list of the left pane, and then switch language on the notification bar.

Image: Comparing language versions

Compare properties

When you select to compare all properties, the All properties editing view displays the two compared versions of the properties side-by-side. They are displayed in the same tabs as they usually are, with the exception of the Basic info properties, which are displayed in a tab of their own instead of in the Basic info area. Tabs that contain changes between versions are highlighted with a yellow digit; the digit identifies the number of changed properties there are on the tab between the two compared versions.

In the compare properties view, the two property versions appear side-by-side. The latest version of the property is shown first, to the left of or above the older version of the property. All properties that differ between the two versions are highlighted with a yellow background.

Image: Comparing properties

You can edit the latest version of the properties, and if you decide that you prefer the older version to the newer, you can click Copy and the older version is used in the newer version also. When you edit a published property, a new draft appears in the version list.