Content Types

by Sharee English

As one of the fundamental elements of SharePoint 2007, content types provide users with the ability to create reusable, consistent data across their web platforms.

In this example I will show you how to create a content type based on the document content type. In this example we will create a "New Policy" content type for our company so that whenever we create a New Company Policy it has some built-in features. This content type will include a Word template, two new site columns called Effective Date and Expiration Date, a workflow to have the policy approved before it gets published to the general employee audience, and an auditing policy to track when the document gets modified, moved, or deleted. To accomplish this we first need to create all of the items that will go into the content type.

Let's start off by creating a Word template.

1.       Open Microsoft Word and create a document for the new policy.  Mine looks like this:

ContentTypeWordDocTemplate.jpg

2.       Save this as a document template named New Policy

ContentTypeSaveAsTemplate.jpg

3.       Close Word

4.       Go to your Site Collection

5.       Go to Site Actions, Site Settings

ContentTypeSiteActions.jpg

Note: If you are in a Publishing site go to Modify All Site Settings

ContentTypeModifyAllSiteSettings.jpg

6.       In the Galleries Section click on Site columns

ContentTypesSiteColumns.jpg

7.       In the Site Column Gallery page, click Create

ContentTypesSiteColumnGallery.jpg

8.       Create a column called Effective Date

9.       Set the data type to Date and Time

10.   Set Require that this columns contains information to Yes

11.   Set the Date and Time format to Date only, and click OK

ContentTypeEffectiveDateColumn.jpg

12.   Create another column called Expiration Date with the same settings as the previous column.

13.   Use the breadcrumb to return to Site Settings

ContentTypeSiteSettingsBreadcrumb.jpg

Now we will create the Content Type

14.   In the Galleries section, click Site content types

ContentTypeGallerySiteContentTypes.jpg

15.   In the Site Content Types Gallery, click Create.

ContentTypeSiteContentTypeGalleryCreate.jpg

16.   Create the new content types with the following options and click OK.

ContentTypeNewSiteContentType.jpg

I usually encourage clients to place their custom content types into their own custom group. In this example I simply placed them in the default “Custom Content Types” group.

Now that the Content Type is created, we need to go add the template and columns.

17.   In the Site Content Type: New Policy page, in the columns section, click Add from existing site columns.

ContentTypesAddFromExistingSiteColumns.jpg

18.   In the Add Columns page select the Effective Date and click the Add> button.

19.   Select the Expiration Date and click the Add> button.

ContentTypeAddColumnsToSiteContentType.jpg

20.   Click OK.

You will be returned to the Site Content Type: New Policy page.

ContentTypeSiteContentTypeNewPolicywColumns.jpg

Next we will configure the workflows settings.

21.   In the Settings section of the Site Content Type: New Policy page, click the workflow settings link.

ContentTypeWorkflowSettings.jpg

Because this content type was based on the Document content type, it automatically inherited the three workflows; Approval, Collect Feedback, and Collect Signatures.

22.   Click the Approval link.

23.   In the Change a Workflow: New Policy page set the workflow settings as follows and click Next.

ContentTypesApprovalWorkflowSettings.jpgContentTypesWorkflowNext.jpg

24.   The workflows settings can be set to whatever the needs are for the particular content type. In this example set the second page of the workflow settings as follows:

ContentTypesCustomizeWorkflowApproval1.jpg

ContentTypesCustomizeWorkflowApproval2.jpgContentTypesCustomizeWorkflowApproval3.jpg

25.   Click OK.

 

 

 

 

ContentTypeSiteContentTypeNewPolicy.jpg

You will be returned to the Site Content Type: New Policy page.

Finally, we will configure the expiration policy for the content type.

26.   Click the Information management policy settings link.

ipl.JPG

27.   In the Information Management Policy Settings Page, select  Define a Policy and click OK.

imps.JPG

28.   In the New Policy page check the Auditing policy with Editing items, Checking out or checking in items, Moving or coping items to another location in the site, and Deleting or restoring items.

auditing.JPG

29.   Click OK.

Our Content Type is now complete. The next step is to attach the content type to a library within the site collection.

30.   Navigate to a document library within the site collection. In my example I will navigate to a Sales Team Site, Sales Documents library.

31.   Select the Settings Menu, Document Library Settings.

DocLibSettings.JPG

32.   In the Customize “Document Library Name” page click the Advanced Settings link.

advSettingsLink.JPG

33.   In the Advanced Settings page, in the Content Types section, select Yes on the Allow Management of Content Types.

AllowContentTypes.JPG

34.   Click OK.

35.   When you return to the Customize page you will see a new section called Content Types displayed.

36.   Click the Add from existing site content types link.

AddContentTypes.JPG

37.   In the Select site content types from: drop down menu, Select the “Custom Content Types”.

38.   In the Available Site Content Types: list box, select “New Policy” and click Add>.

AddContentType2.JPG

39.   Click OK.

40.   Using your breadcrumb, navigate back to the document library.

41.   Click on the New menu. You should see your content type listed in the menu.

NewMenu.JPG

42.   Click on New Policy.

43.   Your new policy template should open in Microsoft Word. Add some content and save the document back to the document library.

44.   Save and Check-in the document. When you save the document you should have to fill-in the required fields for Effective Date and Expiration Date.

NewPolicyInAction.JPG

45.   If you encounter a problem checking-in the document you can click on the Edit Properties menu of the document and ensure all required properties are complete and click OK.

DocProperties.JPG

Once the document is checked-in, it will need to go through an approval process before other users can see the document.

46.   Click on the Workflows menu of the document.

workflowsmenu.JPG

47.   In the Running Workflows section, notice the Approval workflow is currently In Progress.

48.   Navigate back to the top of the site, into the Tasks list. (By default workflow tasks go to the Task list of all sites, unless you specify otherwise when we originally set the workflow settings in the Content Type).

49.   You should see a task for the Customer Issue Escalation Policy. Once the document is approved all viewers will be able to see the document.

50.   In this example I will go ahead and approve the document by clicking on the task and clicking Approve.

ApproveTask.JPG

 

This is one example of how content types can be used to create consistency across the organization.