Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
    
Thanks for your answer. But is there also a no code solution for this problem? like [Version] or something else? –  LaPhi May 10 '11 at 8:19
1  
Nope, I don't think so. –  Andy Burns May 10 '11 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 May 10 '11 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. –  Anders Rask May 10 '11 at 12:43
1  
Good point there, +1 –  James Love May 10 '11 at 12:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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