In my last entry, we looked at allowing multiple Content Types in a SharePoint document library. Today, as promised, we'll be creating a new content type template, which will then be available as a default content type from within a document library. To get started, we need to click the Site Settings item in the Site Actions dropdown.
On the resulting Site Settings page, find and click the hyperlink for Site content types under the Galleries heading:
On the Site Content Type Gallery page, click the Create button located above the list at the upper left-hand corner. Doing so will render the New Site Content Type creation page:
Since we need to have an existing template of the content type we want to add, I'm going to create a new Excel workbook called Site Traffic. In the Name field on the New Site Content Type form pictured above, I'm going to also name the content type Site Traffic, and will enter a short Description as well. The Parent Content Type section consists of two related dropdown menus. The first of these is Select parent content type from, and your choices are Document, Folder, List, and Special. Of these, Excel is a Document, so that will be my selection. The second dropdown menu here is for Parent Content Type, and my choice here will also be Document. The other Parent Content Types in this second menu are Basic Page, Dublin Core Columns, Form, Link to a Document, Master Page, Picture, and Web Part Page. The final section is Group, which allows you to place the New Content Type in an Existing group (which is the default radio button selection), or in a New group of your own choosing and creation. The options associated with Existing group include Custom, Document, Folder, List, and Special. I'm going to create a new Group and call it Blogs. With all of these selections in place, I'm ready to hit the OK button and create my New Site Content Type:
We're not done yet though. On the resulting page, which lists the information associated with your new Site Conent Type, click the Advanced settings hyperlink under the Settings heading. After clicking that link, on the Advanced Settings page, select the Upload a new document template radio button, click Browse, locate your document (Site Traffic.xlsx in my case), and click OK. I'm going to leave the remaining choices set to the defaults (read only = no; update all content types inheriting from this type = yes). This will place us back on the Site Content Type page for our document, and will click the Add from new Site Column hyperlink, under the Columns heading.
On the resulting New Site Column page, we need to assign a Name to the new column. I'll call mine Metrics. The next decision regards the type of information that will be stored in this column, and I'm going to leave mine set to the default, Single line of text. Group is the next section, and I'm going to select the New group radio button and type in Blogs. In the Additional Column settings section, I'm going to enter three choices: SharePoint Blank, SharePoint Daily, and The Bamboo Team Blog. Again, I'm going to leave the remaining Update List and Site Content Types section set to the default, and click OK.
Next I'm going to navigate to the Document Library Settings from within the Shared Documents library on my My Site, and locate the Content Types header. By default, you'll see the preexisting content type that has been associated with your library, in my case, Document. I'm going to click the Add from Existing Site Content Types hyperlink in this section and, on the resulting Add Content Types page, I'll select my Blogs group within the Select site content types from dropdown menu. Next, my Site Traffic item will populate within the Available Site Content Types field, and I'll click the Add button to move it to the Content types to add field:
After clicking OK (not shown), I'm dropped back into the Customize Shared Documents page, where I can see that my new Site Traffic content type is now listed along with the preexisting Document default content type:
And voila, now I (or anyone with access to my My Site) can create new documents using the Site Traffic content type within my Shared Documents library.
Oct 20 2008, 05:27 PM
| Edit this post
John Anderson joined Bamboo Solutions as Manager of Content & Syndication in May of 2008 after a 12-year career at AOL. New to SharePoint at the time of his hiring, John was tasked with creating a new blog for the just-launched Bamboo Nation community in which he would document his daily SharePoint learning process. Thus was born the end user-centric SharePoint Blank, for which John authored 200 posts within a year, and which he continues to write today (albeit much more sporadically). Currently serving as Managing Editor, John sets the tone for Bamboo Nation as its lead blogger, and oversees content across Bamboo properties.