3

it is possible to show the Versions Number from a SharePoint Site on the Site like a footer?

1 Answer 1

3

You could have a user control which display the BuildVersion of the farm, and show this within your MasterPage in the right place.

The BuildVersion property:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spfarm.buildversion.aspx

Creating User Controls for SharePoint:

http://sharepointinsight.blogspot.com/2007/07/web-user-controls-in-sharepoint.html

5
  • Thanks for your answer. But is there also a no code solution for this problem? like [Version] or something else?
    – LaPhi
    Commented May 10, 2011 at 8:19
  • 1
    Nope, I don't think so.
    – Andy Burns
    Commented May 10, 2011 at 12:00
  • 1
    Yeah, don't think there is. The user control could be dead simple, though - your basic ASCX with something like this in: <% Microsoft.SharePoint.Administration.SPFarm.Local.BuildVersion.ToString(); %> - no need for any assemblies, just the ASCX deployed to the CONTROLTEMPLATES directory (although I'm not yet sure how sandboxable this is).
    – James Love
    Commented May 10, 2011 at 12:03
  • 2
    hmm, you might get trouble with permissions fetching farm properties with a regular user, so remember to test if this work without elevation. Commented May 10, 2011 at 12:43
  • 1
    Good point there, +1
    – James Love
    Commented May 10, 2011 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.