Stump the Panel » Site Managers and Site Collection Managers

Enforce Versioning

(10 posts)
  • Started 1 month ago by erugalatha
  • Latest reply from lmelito
  1. erugalatha
    Member

    Hello,

    How do I enforce that Versioning is turned on in every document library created by anyone?

    Thanks,
    Joe

    Posted 1 month ago #
  2. 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

    Posted 1 month ago #
  3. erugalatha
    Member

    noooooooooooooooo! <starts to cry>
    :)

    Posted 1 month ago #
  4. SPFan
    Member

    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@

    Posted 1 month ago #
  5. erugalatha
    Member

    Thanks SPFan. Will try it out.

    Posted 1 month ago #
  6. 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

    Posted 1 month ago #
  7. erugalatha
    Member

    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.

    Posted 1 month ago #
  8. Good question. I have no idea. Probably that whole custom site definitition idea would come into play.

    Laura

    Posted 1 month ago #
  9. Pelica
    Member

    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!!

    Posted 1 month ago #
  10. 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!

    Posted 3 weeks ago #

RSS feed for this topic

Reply

You must log in to post.