The Art of SharePoint Evolution

Stories from a SharePoint Engineer that isn’t afraid of Visual Studio.

How to Create Document Templates for Document Libraries

with 19 comments

With SharePoint, there’s a feature that helps with source control for document templates. Using Content Types in combination with document libraries we can have a set of document templates that users can choose from, edit and save without over-writing the original document.

Here are the steps to implement this:

1. Create a Document Library

2. Within the site that contains that Document Library, go to Site Actions > Site Settings

3. Under the Galleries section, click on Site Content Types

4. Click the Create link at the top of the list.

5. Give your Content Type a name and description.

6. Under Parent Content Type choose “Select parent content type from: Document Content Types” and “Parent Content Type: Document”

7. If this is the first time you’re creating a new Content Type, then you should choose to place it in a “New Group” and give it a meaningful name.

8. After creating the Content Type, you have the option of customizing some of the settings. Click on ‘Advanced Settings.’

9. Choose to upload a New Document Template.

10. Leave the rest of the default settings and press OK.

Now we’ll have to go back to the Document Library that we had created earlier. Within that Document Library:

11. Click on Settings > Document Library Settings

12. Under the General Settings Section, click on ‘Advanced Settings’

13. If ‘Allow management of content types?’ is set to No, change it to Yes. Leave the rest of the settings, and click OK.

14. Under the Content Types Section, click ‘Add from existing site content types’

15. Now you’ll have the option of choosing the from the menus, the Content Type Group and Content Type that was created earlier. You’ll want to add it to the list of ‘Content Types to add:’

16. Go back to the Document Library, click the arrow next to the ‘New’ button and you should now have a new Document Template to choose from!

Written by Henry

February 12, 2007 at 11:23 am

Posted in SharePoint

19 Responses

Subscribe to comments with RSS.

  1. We are embarking on the Sharepoint journey and are always seeking models to build on.

    Thanks for the tip!

    George M

    February 13, 2007 at 7:26 am

  2. You’re very welcome!

    Henry

    February 13, 2007 at 9:35 am

  3. Good one,
    Please suggest me for the below requirement.
    I have list of templates. I will upload those templates into document library, whenever I open the uploaded template, It opens and making changes to the same template it is not allowing me to saves as document.

    How to handle the above situation.

    Vijayaraja.P

    July 2, 2007 at 9:50 pm

  4. Hi Vijayaraja,

    If the document library is read only, you will not be able to save a document back to it.

    Henry

    July 3, 2007 at 10:19 am

  5. Is it possible to have different “New” menu items based on what folder you are viewing in the document library, or do you have to create different document libraries to have different new menus?

    Darren

    May 9, 2008 at 11:32 am

  6. Hey Darren, I’m pretty sure I’ve seen this demo’ed somewhere. Most likely by a SharePoint MVP….maybe jopx? Not sure.

    Henry

    May 12, 2008 at 7:44 pm

  7. Thanks for an excellent explanation. It was the most concise one I’ve found and has helped me get up and running with this excellent feature of Sharepoint.

    Paul

    June 15, 2008 at 11:08 pm

  8. hi there

    i am trying to edit a knowledge based article template . please advice how can i do that?
    i just wanna add more textboxes and combo box in it to store information.

    Thanks

    tar

    June 26, 2008 at 5:16 am

  9. [...] I wanted to have my own templates inside a Sharepoint 2007 Document Library; check this great post! [...]

  10. Excellent step-by-step! Thanks!!!

    Mike

    July 16, 2008 at 9:12 am

  11. Very comprehensive!
    Wish there were a step by step on SharePoint explained just like this!

    Parul

    Parul

    December 12, 2008 at 2:42 am

  12. [...] how can I create a document template in SharePoint? Use this link. May help. http://blog.henryong.com/2007/02/12/…ent-libraries/ — Amir Mehrani http://sharepointroad.wordpress.com "Madelon" <Madelon> wrote in [...]

  13. Thanks for the tutorial!

    Chris

    February 19, 2009 at 9:34 am

  14. Hi Henry,

    Iam Beginner for Sharepoint.I Need to do Customize Document Library in Sharepoint Using Code.I Tried as You Given Explanation,But it is Through UI.But I Need to do with coding as a dll.Is it Possible in C#.

    Subbu

    April 16, 2009 at 1:31 am

  15. Hi Subbu, yes everything you can do in the UI, you can do programmatically in code.

    Henry

    April 17, 2009 at 11:54 am

  16. Hi, under general settings > advanced settings, is there a way to have “Allow management of content types” always default to yes? (maybe from a central admin section?)

    When I create new libraries I want the New button to offer excel templates by default without having to go through the above instructions. Reason being, eventually there will be hundreds of libraries across the site and i don’t go through all of these steps 100s of times.

    Mike J

    April 28, 2009 at 12:26 pm

  17. Hey Mike, there’s no central setting for that “Allow management of content types” section to be yes by default. Although, you can create a Document Library template that has the document template attached to it by default.

    Another thing you can do is utilize a Powershell script that can change this setting for you. Or you can send me a $20 dollar bill and I’ll do it for you :)

    Henry

    April 29, 2009 at 1:22 pm

  18. Is is possible to make a document auto-fill some parts with user attributes from the sharepoint account (such as name, company, whatever..)? That would be awesome but I haven’t found a way to do it..

    Joao

    July 7, 2009 at 5:04 am


Leave a Reply