Home > Sample chapters

Working with Web Pages in Microsoft SharePoint Foundation 2010

Working with Page History and Versions

A SharePoint Foundation–based wiki library has all the features of a document library, such as history and version management. Therefore, no amendments are lost. Major versioning is turned on by default when you create a wiki page library. You can also use content approval and workflow, as well as restrict the rights as to who can publish and edit pages.

In the following exercise, you will view the history of a page, observe the changes to the page, and then revert to the previous copy of the page.

  1. Click the Page tab, and then click Page History in the Manage group.

    httpatomoreillycomsourcemspimages1755499.jpg

    You are taken to the History page of the home page. In the content area, deletions have a strikethrough red font, and additions have a green background color. In the left navigation pane, each version of the page is listed with the date and time that the version was created.

    httpatomoreillycomsourcemspimages1755501.jpg
  2. In the left navigation pane, in the Compare with version list, select 4.0.

    The current version of the page is compared with version 4.0 of the page.

    httpatomoreillycomsourcemspimages1755503.jpg
  3. In the left navigation pane, under Versions, click 4.0. The fourth version of the page is displayed.

  4. Click Restore this version. A Message From Webpage dialog box appears.

    httpatomoreillycomsourcemspimages1755505.jpg
  5. Click OK to replace the current version of the wiki page with the selected version. The home page is displayed. A yellow status bar appears, stating that the current page has been customized from its template. This can occur when you restore a previous version of a page using the browser or when using a program such as SharePoint Designer 2010.

    httpatomoreillycomsourcemspimages1755507.png
  6. On the status bar, click Revert to template. A Message From Webpage dialog box opens.

    httpatomoreillycomsourcemspimages1755509.jpg
  7. Click OK to revert the page to its template.