Blog b = new Blog("marcos blog"); RSS 2.0
# Tuesday, September 02, 2008

Today I found a version history “bug” in SharePoint publishing pages:

The version history system of SharePoint covers only Page Fields, but not Web Parts.

In detail:

  • Create a new page (e.g. “Blank Web Part Page”) within a publishing web.
  • Now add text and a Web Part. Save changes and check-in.
  • Check out and change the text and some properties of the Web Part.
  • After that, check-in again, and open the “Version History”

If you now try to recover the first version, it seems to work, but only the page fields are recovered. The Web Part is always the latest version, because the Web Parts are saved in a totally different location, so they are not covered by the version history system.

Lets have a look on a cool solution:
Garry Lapointe created a web feature which replaces the version history system and saves a whole page with all Web Parts on every check-in through an Event Receiver on the Pages list.
The version is Alpha 0.0.1 but it is working very well, so download it from codeplex.

Tuesday, September 02, 2008 8:44:01 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]
.NET | SharePoint
Thursday, January 15, 2009 3:44:01 PM (W. Europe Standard Time, UTC+01:00)
Hi,

This isn't a bug. The information from MS states that a field control is version with the page but Web Parts are versioned in a different way. It comes from previous versions of SharePoint.

Dave
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, strike, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
Statistics
Total Posts: 192
This Year: 4
This Month: 1
This Week: 0
Comments: 291


Sign In
All Content © 2010, Marco Wiedemeyer
DasBlog theme 'Business' created by Christoph De Baene (delarou)