Saturday, November 10, 2007

Change the Version History page in SharePoint v3.0 to show metadata for all versions

I did a lot of experimenting today and found out that the following change:

If you want to change the view so that is shows the full metadata for every line, perform the following steps:

  • Logon to the server hosting the SharePoint site
  • Create a backup of the Versions.aspx page at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\versions.aspx
  • Open the Versions.aspx page
  • Delete lines 528 through 533:
    528 object val = itemcurr.GetFieldValue(field); <% object val = itemcurr.GetFieldValue(field); %>
    529 object valprev = null;<% object valprev = null; %>
    530 if (itemprev != null) valprev = itemprev.GetFieldValue(field); <% if (itemprev != null) valprev = itemprev.GetFieldValue(field); %>
    531 if (((val != null) ? val.ToString() : String.Empty)<% if (((val != null) ? val.ToString() : String.Empty) %>
    532 != ((valprev != null) ? valprev.ToString() : String.Empty))<% != ((valprev != null) ? valprev.ToString() : String.Empty)) %>
    533 {<% { %>
  • And delete line 558:
    558 }<% { %>
  • Save the file and then all sites will have this view of the version page:
  • Repeat the process on all front end servers.

Now, I'll go back and see if I can get it to bold the changes...

No comments: