Hello,
How do I enforce that Versioning is turned on in every document library created by anyone?
Thanks,
Joe
Paul Grenier, Lead Moderator
Hello,
How do I enforce that Versioning is turned on in every document library created by anyone?
Thanks,
Joe
I'm pretty sure that would have to be a custom site definition or custom template used when creating the sites.
Laura Rogers
http://spinsiders.com/laurar
noooooooooooooooo! <starts to cry>
:)
You can create a template for a document library that enforces versioning. I believe that you have to be a site collection administrator to save a document library as a template. Make sure that when you save it to not include content - just the structure.
To enforce versioning, open the library and click Settings, then select Document Library Settings option. This opens the Customize Document Library page. Under the General Settings heading, click on the Versioning link. This opens the Versioning Settings page where you can specify the type of versioning - none, major/minor versions, or major versions only. You can also specify how many earlier versions to keep.
While you're at it, you should click "Yes" to require checkout to edit the document. It's the last option on the page.
To save the document library as a template, under the Permissions heading on the Customize Library page, click the "Save document library as template" and complete the information displayed on the page. You can save content in the library in the template, if you wish.
Good Luck@
Thanks SPFan. Will try it out.
Then, you'd just have to put that template on every site collection, and get your users to use that new one instead of the built-in document library template.
Laura
Thanks Laura. How would I hide all the other default templates?
So users can only use my custom template when creating document libraries?
Thanks for your help.
Good question. I have no idea. Probably that whole custom site definitition idea would come into play.
Laura
I hope someone can answer how to hide all the doc libs - we have the same issue. I created a document library template that is the only one we want people to use, but of course, with no way to "hide" the others....there's no guarantee that people will use the ones we don't want them to use!!
That would be great to have by default for all sites, but I think it would have to be a custom site def.
If you need to update all the document libraries that are already in use you can write a script that iterates through all the lists in your site
SPListCollection docLibs = web.GetListsOfType(SPBaseType.DocumentLibrary);
foreach (SPList docLib in docLibs)
{
docLib.EnableVersioning = true;
docLib.Update();
}
Good luck!
You must log in to post.