it is possible to show the Versions Number from a SharePoint Site on the Site like a footer?
1 Answer
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
- Thanks for your answer. But is there also a no code solution for this problem? like [Version] or something else?LaPhi– LaPhi2011-05-10 08:19:59 +00:00Commented May 10, 2011 at 8:19
- 1Nope, I don't think so.Andy Burns– Andy Burns2011-05-10 12:00:36 +00:00Commented May 10, 2011 at 12:00
- 1Yeah, 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– James Love2011-05-10 12:03:19 +00:00Commented May 10, 2011 at 12:03
- 2hmm, you might get trouble with permissions fetching farm properties with a regular user, so remember to test if this work without elevation.Anders Rask– Anders Rask2011-05-10 12:43:12 +00:00Commented May 10, 2011 at 12:43
- 1Good point there, +1James Love– James Love2011-05-10 12:54:30 +00:00Commented May 10, 2011 at 12:54