Ted's SharePoint

Less Is More

导航

<2010年2月>
31123456
78910111213
14151617181920
21222324252627
28123456
78910111213

Blog Stats

文章分类

档案

相册

多媒体

SharePoint Bloggers

SharePoint Sites

Login

"Save a version everytime you edit" on by default for document library

Space asked on MS Community: “

Is there anyway to have the My Site document ilbraries to have have the 
option "Save a version everytime you edit" on by default for document 
libraries?

If nothing else just the default DL's Private Documents and Shared Documents.

Here is a solution but it applies to all DLs.

1. Go to sps sever, C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033

2. Open lstsetng.aspx and find below

<TD class="ms-authoringcontrols" nowrap> <% if ( spList.EnableVersioning == true ) { %> <INPUT id=onetidVersioningEnabledYes type="radio" tabindex="1" value="TRUE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: Yes" CHECKED> <% ; } else { %> <INPUT id=onetidVersioningEnabledYes type="radio" tabindex="1" value="TRUE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: Yes" > <% ; } %><LABEL FOR="onetidVersioningEnabledYes">Yes</LABEL>&nbsp;&nbsp;&nbsp;</td>


<TD class="ms-authoringcontrols" nowrap> <% if ( spList.EnableVersioning == true ) { %> <INPUT id=onetidVersioningEnabledNo type="radio" tabindex="1" value="FALSE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: No" > <% ; } else { %> <INPUT id=onetidVersioningEnabledNo type="radio" tabindex="1" value="FALSE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: No" CHECKED> <% ;} %><LABEL FOR="onetidVersioningEnabledNo">No</LABEL></td>

3. Change above to:

<TD class="ms-authoringcontrols" nowrap> <% if ( spList.EnableVersioning == true ) { %> <INPUT id=onetidVersioningEnabledYes type="radio" tabindex="1" value="TRUE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: Yes" CHECKED> <% ; } else { %> <INPUT id=onetidVersioningEnabledYes type="radio" tabindex="1" value="TRUE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: Yes" CHECKED> <% ; } %><LABEL FOR="onetidVersioningEnabledYes">Yes</LABEL>&nbsp;&nbsp;&nbsp;</td>


<TD class="ms-authoringcontrols" nowrap> <% if ( spList.EnableVersioning == true ) { %> <INPUT id=onetidVersioningEnabledNo type="radio" tabindex="1" value="FALSE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: No" > <% ; } else { %> <INPUT id=onetidVersioningEnabledNo type="radio" tabindex="1" value="FALSE" Name="VersioningEnabled" title="Create a version each time you edit a file in this document library: No" > <% ;} %><LABEL FOR="onetidVersioningEnabledNo">No</LABEL></td>

Then you will get “
Create a version each time you edit a file in this document library?
     

as the default.

 

posted on 2005年4月14日 10:28

Feedback

请发表评论
Title  
Name  
Url
Verify Code  
Comments   

请不要发表可能给我们带来伤害的政治言论,谢谢配合