Click here to Skip to main content
1,822 members
Articles / Windows
Article

Publishing Reusable Templates as Content Types in Microsoft SharePoint 2007

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
12 Apr 2012CPOL 6.6K  
An article that discusses how to use content types to define and manage the metadata and behaviors using SharePoint 2007.

Overview

A content type is a reusable collection of settings you want to apply to a certain category of content. Content types enable you to describe and categorize your items in a more significant way. Use content types to define and manage the metadata and behaviors of your documents and list items in a centralized, reusable way. Content types also enable you to store different types of content in the same document libraries and lists. Each content type can specify: Properties to associate with items of its type, Workflows that can be launched from items of its type, Information management policies to associate with items of its type, Document templates (for document content types), Document conversions to make available (for document content types), Document conversions to make available (for document content types), Custom features and You can associate a content type with a list or library.

Applies To

MOSS 2007, WSS 3.0, InfoPath and other Microsoft office tools

Content

  • Enable Content Type in Document Library
  • Remove the Default Content Type
  • Adding your Custom Template as Site Content Type
  • Adding InfoPath Form as Content Type

Enable Content Type in Document Library

Open your document library which you created for adding the content type and click on the settings and select the Document Library Settings

image001.jpg

Now select the advanced settings under the general settings and proceed to next operation.

image002.jpg

In the content type section set allow management of content types to Yes. Leave the other options and settings as it is, in case you need a change a as per your requirement go ahead.

image003.jpg

Now click ok to continue and proceed to next level of configuration.

image004.jpg

Now you see the new section called content types as been visible now. Click on the document content type which is the default content type enabled for our document library.

Remove the Default Content Type

Here you can find the list of settings options available for selected content type.

image005.jpg

Select Delete option under the setting, to delete the existing default content type. The message will prompt, select ok to confirm.

image006.jpg

Adding your Custom Template as Site Content Type

Now go to your site actions and site settings to add your custom content type in the site content type list.

image007.jpg

Click on the Site content types under galleries to continue to add the custom content type.

image008.jpg

Click on create to add your own content type in the custom content type list.

image009.jpg

This is the wizard screen to create the new content type. First enter your own desired name for your content type.

image010.jpg

In this drop down choose the parent content type, corresponding content types will be displayed in the next drop down.

image011.jpg

Now this your content type, which shown with some options to work on that is listed below

image012.jpg

Now select the Advanced settings and continue to work on your content type.

image013.jpg

In the Document Template choose the radio button upload a new document template, browse and select your document content type and if you want to set it in read only mode set it to yes in the read only option.

image014.jpg

Click ok and continue. Now go to your document library and click on settings select document library settings, under content types click on the Add from existing site content types to continue.

image015.jpg

You can see the “custom” the content type group which created was listed in the dropdown under the select the content types

image016.jpg

Our content type is added click ok to continue.

image017.jpg

Our content type is listed under the content type list of our document library.

image018.jpg

Now check in the document library the content type is successfully added for the document library.

Adding InfoPath Form as Content Type

Now we can how InfoPath forms can be added as content type in the SharePoint site.

image019.jpg

Select Microsoft Office InfoPath in the dropdown and click ok to continue. To change the default .xsn InfoPath template click on the advanced settings

image020.jpg

Now upload the new .xsn template to the content type to change default.

image021.jpg

Now your InfoPath content type as successfully added

image022.jpg

Reference

  • MSDN Microsoft
  • Technet Microsoft

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer at Zealots
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --