۶Ƶ

Working with Page Versions working-with-page-versions

Versioning creates a “snapshot” of a page at a specific point in time. With versioning, you can perform the following actions:

  • Create a version of a page.
  • Restore a page to a previous version so you can undo a change that you made to a page.
  • Compare the current version of a page with a previous version with differences in the text and images highlighted.

Creating a Version creating-a-new-version

To create a version of a page:

  1. In your browser, open the page for which you want to create a version.

  2. In the Sidekick, select the Versioning tab, then the Create Version subtab.

    screen_shot_2012-02-14at40259pm

  3. Enter a Comment (optional).

  4. 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.

  5. Click Create Version. A grayed message is displayed on the page; for example:
    Version 1.2 created for: Shirts.

NOTE
A version is automatically created when the page is activated.

Restoring a Page Version from Sidekick restoring-a-page-version-from-sidekick

To restore the page to a previous version:

  1. Open the page for which you want to restore a previous version.

  2. In the sidekick, select the Versioning tab, then the Restore Version subtab.

    screen_shot_2012-02-14at42949pm

  3. Select the version that you want to restore and select Restore.

Restoring a Page Version from the Console restoring-a-page-version-from-the-console

This method can be used to restore a page version. It can also be used to restore pages that have been previously deleted:

  1. In the Websites console, navigate to the page you want to restore and select it.

  2. From the top menu, select Tools, then Restore:

    screen_shot_2012-02-08at41326pm

  3. Selecting Restore Version… lists versions of documents in the current folder. Even if a page has been deleted, the last version is listed:

    screen_shot_2012-02-08at45743pm

  4. Select the version that you want to restore and click Restore. AEM restores the versions (or trees) that you select.

Restoring a Tree from the Console restoring-a-tree-from-the-console

This method can be used to restore a page version. It can also be used to restore pages that have been previously deleted:

  1. In the Websites console, navigate to the folder you want to restore and select it.

  2. From the top menu, select Tools, then Restore.

  3. Selecting Restore Tree… opens the dialog box so you can select the tree that you want to restore:

    screen_shot_2012-02-08at45743pm-1

  4. Click Restore. AEM restores the tree that you have selected.

Comparing with a Previous Version comparing-with-a-previous-version

To compare the current version of the page with a previous version:

  1. In your browser, open the page for which you want to compare with a previous version.

  2. In the Sidekick, select the Versioning tab, then the Restore Versio n subtab.

    screen_shot_2012-02-14at42949pm-1

  3. Select the version that you want to compare and click the Diff button.

  4. The differences between the current version and the selected version are displayed as follows:

    • Text that has been deleted is red and struck through.
    • Text that has been added is green and highlighted.
    • Images that have been added or deleted are green-framed.

    chlimage_1-75

  5. In the Sidekick, select the Restore Version subtab and click the <<Back button to display the current version.

Timewarp timewarp

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:

  • The system looks for the page version that was active at the selected time.
  • This means the version shown was created/activated before the point in time selected in Timewarp.
  • When navigating to a page that has been deleted this is also rendered - as long as the old versions of the page are still available in the repository.
  • If no published version is found, then Timewarp reverts to the current state of the page on the author environment (this is to prevent an error/404 page, which would mean that you cannot browse anymore).
NOTE
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.

Using the Timewarp Calendar using-the-timewarp-calendar

Timewarp is available from the sidekick.

The calendar version is used if you have a specific day to be viewed:

  1. Open the Versioning tab and then click Timewarp (near the bottom of the sidekick). The following dialog box is shown:

    chlimage_1-76

  2. 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.

    note note
    NOTE
    Timewarp only works fully if you have previously published the page. If not, Timewarp shows the current page on the author environment.
    note note
    NOTE
    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.
    note note
    NOTE
    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.
  3. When you have finished viewing the page, click:

    • Exit Timewarp to exit and return to the current author page.
    • Show Timeline so you can view the timeline.

    chlimage_1-77

Using the Timewarp Timeline using-the-timewarp-timeline

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:

  1. To show the Timeline, do one of the following:

    1. Open the Versioning tab, and then click Timewarp (near the bottom of the sidekick).

    2. Use the sidekick dialog box shown after using the Timewarp Calendar.

  2. Click Show Timeline - the document’s timeline appears; for example:

    chlimage_1-78

  3. Select and move (hold and drag) the timeline to move through the document’s timeline.

    • All lines indicate published versions.
      When a page is activated, a new line starts. Every time the document is edited a new color appears.
      In the example below, the red line indicates that the page was edited during the timeframe of the initial green version. The yellow line indicates that the page was edited sometime during the red version, and so on.

    chlimage_1-79

  4. Click:

    1. Go to show the content of the published page at the selected time.
    2. When showing that content, use Exit Timewarp to exit and return to the current author page.

Timewarp Limitations timewarp-limitations

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.

CAUTION
Timewarp is designed to assist authors with understanding and creating their content. It is not intended as an audit log or for legal purposes.
recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2