Versioning creates a “snapshot” of a page at a specific point in time. With versioning, you can perform the following actions:
To create a version of a page:
In your browser, open the page for which you want to create a version.
In the Sidekick, select the Versioning tab, then the Create Version subtab.
Enter a Comment (optional).
To set a label to the version (optional), click the More >> button and set the Label to name the version. If the label is not set, the version is an automatically incremented number.
Click Create Version. A grayed message is displayed on the page; for example:
Version 1.2 created for: Shirts.
A version is automatically created when the page is activated.
To restore the page to a previous version:
Open the page for which you want to restore a previous version.
In the sidekick, select the Versioning tab, then the Restore Version subtab.
Select the version that you want to restore and select Restore.
This method can be used to restore a page version. It can also be used to restore pages that have been previously deleted:
In the Websites console, navigate to the page you want to restore and select it.
From the top menu, select Tools, then Restore:
Selecting Restore Version… lists versions of documents in the current folder. Even if a page has been deleted, the last version is listed:
Select the version that you want to restore and click Restore. AEM restores the versions (or trees) that you select.
This method can be used to restore a page version. It can also be used to restore pages that have been previously deleted:
In the Websites console, navigate to the folder you want to restore and select it.
From the top menu, select Tools, then Restore.
Selecting Restore Tree… opens the dialog box so you can select the tree that you want to restore:
Click Restore. AEM restores the tree that you have selected.
To compare the current version of the page with a previous version:
In your browser, open the page for which you want to compare with a previous version.
In the Sidekick, select the Versioning tab, then the Restore Version subtab.
Select the version that you want to compare and click the Diff button.
The differences between the current version and the selected version are displayed as follows:
In the Sidekick, select the Restore Version subtab and click the <<Back button to display the current version.
Timewarp is a feature designed to simulate the published state of a page at specific times in the past.
The purpose is to let you track the published website at the selected point in time. This uses the page activations to determine the state of the publish environment.
To do this:
If versions are removed from the repository, then Timewarp cannot show the correct view. Also, if elements (such as code, css, and images) for rendering the website have changed, the view differs from what it originally was, as those items are not versioned in the repository.
Timewarp is available from the sidekick.
The calendar version is used if you have a specific day to be viewed:
Open the Versioning tab and then click Timewarp (near the bottom of the sidekick). The following dialog box is shown:
Using the date and time selectors specify the date/time you want and click Go.
Timewarp displays the page as it was in its published state before/on the date you have chosen.
Timewarp only works fully if you have previously published the page. If not, Timewarp shows the current page on the author environment.
If you navigate to a page that has been removed or deleted from the repository, it is rendered properly if old versions of the page are still available in the repository.
You cannot edit the old version of the page. It is only available for viewing. If you want to restore the older version, you can do that manually using restore.
When you have finished viewing the page, click:
The timeline version is used if you want to see an overview of the publishing activities on the page.
If you want to view the timeline of the document:
To show the Timeline, do one of the following:
Open the Versioning tab, and then click Timewarp (near the bottom of the sidekick).
Use the sidekick dialog box shown after using the Timewarp Calendar.
Click Show Timeline - the document’s timeline appears; for example:
Select and move (hold and drag) the timeline to move through the document’s timeline.
Click:
Timewarp makes a best effort to reproduce a page at a selected point in time. However because of the complexities of the continuous authoring of content in AEM, this is not always possible. These limitations should be kept in mind as you use Timewarp.
Timewarp works based on published pages - Timewarp only works fully if you have previously published the page. If not, Timewarp shows the current page on the author environment.
Timewarp uses page versions - If you navigate to a page that has been removed/deleted from the repository it is rendered properly if old versions of the page are still available in the repository.
Removed versions affect Timewarp - If versions are removed from the repository then Timewarp cannot show the correct view.
Timewarp is read-only - You cannot edit the old version of the page. It is only available for viewing. If you want to restore the older version, you can do that manually using restore.
Timewarp is only based on page content - If elements–such as code, css, and image assets–for rendering the website have changed, the view differs from what it was originally. The reason is because those items are not versioned in the repository.
Timewarp is designed to assist authors with understanding and creating their content. It is not intended as an audit log or for legal purposes.