您正在檢視適用於以下版本的說明內容::

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; for example, to undo a change that you made to a page.
  • Compare the current version of a page with a previous version: texts, changes are marked with a specific style.

Touch-Optimized UI

Creating a New Version - Touch-optimized UI

You can create a version of your resource from:

Creating a New Version - Timeline

  1. Navigate to show the page for which you want to create a version.

  2. Select the page in selection mode.

  3. Open the Timeline column.

  4. Click/tap on the arrowhead by the comment field to reveal the options:

    screen_shot_2012-02-15at105050am
  5. Select Save as Version.

  6. Enter a Label and Comment if required.

  7. Confirm the new version with Create.

    The information in the timeline will be updated to indicate the new version.

Creating a New Version - Create with a Selected Resource

  1. Navigate to show the page for which you want to create a version.

  2. Select the page in selection mode.

  3. Select the Create option from the toolbar.

  4. The dialog will open. You can enter a Label and a Comment if required:

    screen_shot_2012-02-15at105050am
  5. Confirm the new version with Create.

    The timeline will be opened with the information updated to indicate the new version.

Reverting to a Page Version - Touch-optimized UI

Once a version has been created you can revert to that version if needed.

註解:

When restoring a page, the version created will be part of a new branch.

To illustrate:

  • Create versions of any page.
  • The initial labels and version node names will be 1.0, 1.1, 1.2 and so forth.
  • Restore the first version; i.e. 1.0.
  • Create new versions again.
  • The generated labels and node names will now be 1.0.0, 1.0.1, 1.0.2, etc.

To revert to a previous version:

  1. Navigate to show the page you want to revert to a previous version.

  2. Select the page in selection mode.

  3. Open the Timeline column and select either Show All or Versions. The page versions for the selected page will be listed.

  4. Select the version you want to revert to. The possible options will be shown:

    screen_shot_2012-02-15at105050am
  5. Select Revert to this Version. The selected version will be restored and the information in timeline will be updated.

Comparing with a Previous Version - Touch UI

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

  1. Navigate to show the page you want to compare.

  2. Select the page in selection mode.

  3. Open the Timeline column and select either Show All or Versions.

  4. The page versions will be listed. Select the version you want to compare:

    chlimage_1
  5. Select Show Differences. The page will open with differences highlighted:

    chlimage_1

Classic UI

Creating a New Version - Classic UI

To create a new version of a page:

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

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

    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 greyed message is displayed on the page; for example:
    Version 1.2 created for: Shirts.

註解:

A version is automatically created when the page is activated.

Restoring a Page Version from Sidekick - Classic UI

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 sub-tab.

    screen_shot_2012-02-14at42949pm
  3. Select the version you want to restore and select Restore.

Restoring a Page Version from the Console - Classic UI

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 will be listed:

    screen_shot_2012-02-08at45743pm
  4. Select the version you want to restore and click Restore. AEM restores the version(s) (or trees) that you select.

Restoring a Tree from the Console - Classic UI

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 to let you select the tree you want to restore:

    screen_shot_2012-02-08at45743pm
  4. Click Restore. AEM restores the tree you have selected.

Comparing with a Previous Version - Classic UI

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 Version sub tab.

    screen_shot_2012-02-14at42949pm
  3. Select the version you want to compare and click the Diff button.

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

    • a text that has been deleted is red and strikedthrough.
    • a text that has been added is green and highlighted.
    • an image that has been added or deleted is green-framed.
    chlimage_1
  5. In the Sidekick, select the Restore Version sub tab and click the <<Back button to display the current version.

Timewarp - Classic UI

Timewarp is a feature designed to simulate the published state of a page at specific times in the past.

The purpose is to allow you to 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 will also be rendered - as long as the old versions of the page are still available in the repository.
  • If no published version is found, then Timewarp will revert 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).

註解:

If versions are removed from the repository then Timewarp cannot show the correct view. Also, if elements (such as code, css, images, etc) for rendering the website have changed, the view will differ from what it originally was, as those items are not versioned in the repository.

Using the Timewarp Calendar - Classic UI

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 will be shown:

    chlimage_1
  2. Using the date and time selectors specify the date/time you want and click Go.

    Timewarp will display the page as it was in its published state before/on the date you have chosen.

    註解:

    Timewarp will only work fully if you have previously published the page. If not, timewarp will show the current page on the author environment.

    註解:

    If you navigate to a page that has been removed/deleted from the repository it will be 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 will have to 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 to view the timeline.
    chlimage_1

Using the Timewarp Timeline - Classic UI

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 you can either:

    1. Open the Versioning tab and then click Timewarp (near the bottom of the sidekick).
    2. Use the sidekick dialog shown after using the Timewarp Calendar.
  2. Click on Show Timeline - the document's timeline will appear; for example:

    chlimage_1
  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 and the yellow line indicates that the page was edited sometime during the red version etc.
    chlimage_1
  4. Click:

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

此産品由 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 授權  Creative Commons 條款未涵蓋 Twitter™ 與 Facebook 文章。

法律說明   |   線上隱私權政策