Creating and Editing Custom Document Information Panels from Office SharePoint Server 2007
Summary: Learn how to create and edit custom document information panels in Microsoft Office SharePoint Server 2007.
Applies to: 2007 Microsoft Office System, Microsoft Office SharePoint Server 2007
Joel Krist, Akona Systems
July 2007
Code It | Read It | Explore It
Code It
To show how to create or edit a custom Document Information Panel from SharePoint Server 2007, this section walks through five key steps:
Creating an Office Word 2007 document template to use as the document template for a custom SharePoint Server 2007 content type.
Creating site columns to use with a custom SharePoint Server 2007 content type.
Creating a custom SharePoint Server 2007 content type and associating the document template and site columns created in Steps 1 and 2 with the content type.
Creating a custom Document Information Panel for the content type created in Step 3.
Creating a SharePoint Server 2007 document library and adding the content type created in Step 3 to the document library.
Create an Office Word 2007 Document Template
This Office Visual How To uses the example of a project status report document to demonstrate how to work with a custom Document Information Panel. In the first step, you create a template for the project status report.
Start Microsoft Word 2007.
Type some text into the document to identify it as a project status report; for example, This is a project status report. For this How To, the actual text is not important.
Save the document as a Word 2007 template (*.dotx) named Project Status Report Template.dotx.
Exit Word.
Figure 1. Saving the Word template
Create Site Columns
The next step is to define two project status report-related site columns. You can use SharePoint site columns to define a set of shared columns that you can reuse across multiple libraries and content types.
In SharePoint Server 2007, click Site Actions, click Site Settings, and then click Modify All Site Settings.
Figure 2. Modify All Site Settings
On the Site Settings page, in the Galleries category, click the Site columns link. The Site Column Gallery page appears.
Figure 3. Site columns
To create a site column, click the Create link. The New Site Column page appears.
Figure 4. Create a site column
Create a column with the following properties:
Column Name: Project Name
The type of information in this column is: Single line of text
Put this site column into: New group. Name the new group Project Status Report.
Require that this column contains information: Yes
Leave the defaults for the remaining properties.
Click OK to create the new column. The Site Column Gallery page appears.
Click the Create link to create a site column. The New Site Column page appears.
Create a column with the following properties:
Column Name: Project Status
The type of information in this column is: Choice (menu to choose from)
Put this site column into: Existing group. Select the Project Status Report group created in Step 4.
Require that this column contains information: Yes
Type each choice on a separate line:
Design
Implementation
Testing
Complete
Display choices using: Drop-Down menu
Allow 'Fill-in' choices: No
Default value: Choice. Select Design.
Click OK to create the column. The Site Column Gallery page appears.
Create a Content Type
Next, you create a Project Status Report content type. Defining a content type creates a template that you can reuse in multiple libraries, and which can help to standardize the documents created and stored in a document library.
In SharePoint Server 2007, click Site Actions. On the Site Settings menu, click Modify All Site Settings.
On the Site Settings page in the Galleries category, click the Site content types link. The Site Content Type Gallery page appears.
Figure 5. Site content types
Click the Create link to create a site content type. The New Site Content Type page appears.
Figure 6. Create Site content type
Specify the following values for the new content type:
Name: Project Status Report
Description: Create a new Project Status Report
Select parent content type from: Document Content Types
Parent Content Type: Document
Put this site content type into: New group. Name the new group Project Status Report.
Click OK to create the content type. The Site Content Type: Project Status Report page appears.
Associate the site columns created previously with the new content type. Click the Add from existing site columns link in the Columns section of the page. The Add Columns to Site Content Type: Project Status Report page appears.
Figure 7. Add from existing site columns
In the Select columns from list, select the Project Status Report group.
Select and add the Project Name and Project Status columns.
To add the columns, click OK. The Site Content Type: Project Status Report page appears.
Figure 8. Selecting Project Status Report Column
Associate the Word Project Status Report document template created previously with the Project Status Report content type. Click the Advanced settings link in the Settings section of the page. The Site Content Type Advanced Settings: Project Status Report page appears.
Figure 9. Advanced settings
Click Upload a new document template, and then click Browse. In the Choose file dialog box, navigate to the folder containing the Project Status Report Template.dotx document created previously, select the file, and then click Open.
Figure 10. Upload a new document template
Click OK to specify the document template for the Project Status Report content type. The Site Content Type: Project Status Report page appears.
Create a Custom Document Information Panel
You can create a custom Document Information Panel for the Project Status Report content type by following these steps.
On the Site Content Type: Project Status Report page, click the Document Information Panel settings link in the Settings section of the page. The Document Information Panel Settings: Project Status Report page appears.
Figure 11. Document Information Panel Settings
Click the Create a new custom template link. Office InfoPath 2007 starts with the Data Source Wizard. Click Finish to load the template for the Project Status Report content type.
Figure 12. Create a new custom template
Edit the template by selecting the Horizontal Region for the Title property and deleting it. All that should remain on the form are the controls for the Project Name and Project Status properties.
Figure 13. Document Information Panel template in InfoPath
To save the template, on the File menu, click Save. InfoPath displays a message about the need to publish the template after you finish designing it. Click OK and InfoPath displays the Save As dialog box. Specify a location and name for the template, and then click Save.
Publish the changed template to SharePoint Server. On the File menu, click Publish. InfoPath displays the Publishing Wizard with the option to publish the template as a Document Information Panel template for a SharePoint site content type or list content type selected. Keep this selection, and then click Next. The Publishing Wizard shows the publishing location information.
Figure 14. InfoPath Publishing Wizard
Click Publish. InfoPath publishes the template to the Project Status Report content type. Click Close to exit the Publishing Wizard.
Figure 15. Publish the Document Information Panel template
Exit InfoPath.
Create a Document Library
Create a SharePoint document library for Project Status Reports by following these steps.
In SharePoint Server 2007, click Site Actions. Click Site Settings, and then click Modify All Site Settings. The Site Settings page appears.
On the Site Settings page in the Site Administration category, click the Site libraries and lists link. The Site Libraries and Lists page appears.
Figure 16. Site libraries and lists
Click the Create new content link. The Create page appears.
Figure 17. Create new content
Select the Document Library link in the Libraries category. The New page appears.
Figure 18. Create a document library
Specify the following values for the properties of the new document library:
Name: Project Status Reports
Description: A library for Project Status Reports
Document Template: Microsoft Office Word document
Figure 19. Document library properties
Click Create to create the library. The Project Status Reports library page appears.
Click the Settings menu, and then click Document Library Settings. The Customize Project Status Reports page appears.
Figure 20. Document library settings
Select the Advanced settings link in the General Settings section of the page. The Document Library Advanced Settings: Project Status Reports page appears.
Figure 21. Advanced settings
In the Content Types section, click Yes for Allow management of content types. Click OK to save the change. The Customize Project Status Reports page appears with the Content Types section now visible.
Figure22. Allow management of content types
Select the Add from existing site content types link in the Content Types section of the page. The Add Content Types: Project Status Reports page appears.
Figure 23. Add from existing site content types
Select the Project Status Report content type group in the Select site content types from drop-down list. Select and add the Project Status Report content type.
Figure 24. Add Project Status Report content type
Click OK to add the content type to the library. The Customize Project Status Reports page appears.
Click the Document Content Type link in the Content Types section of the page. The List Content Type: Document page appears.
Figure 25. Document content type
Click the Delete this content type link in the Settings section of the page. Click OK when prompted for verification to delete the content type. The Customize Project Status Reports page appears.
Figure 26. Delete this content type
To test the custom Document Information Panel, navigate to the Project Status Reports SharePoint document library. On the New menu, click Project Status Report.
Figure 27. Create a new Project Status Report document
A warning message might be displayed regarding the dangers of opening files from the Internet. Click OK button to close the message box. Word 2007 opens with the Project Status Report document loaded. The custom Document Information Panel appears, showing the Project Name and Project Status properties. Editing the document and then saving it publishes the document to the Project Status Reports SharePoint document library.
Figure 28. Custom Document Information Panel
Read It
This Office Visual How To explores how to create or edit a custom Document Information Panel from Office SharePoint Server 2007. This How To addresses the following key steps:
Creating an Office Word 2007 document template to use as the document template for a custom SharePoint Server 2007 content type.
Creating site columns to use with a custom SharePoint Server 2007 content type.
Creating a custom SharePoint Server 2007 content type and associating a document template and site columns with the content type.
Creating a custom Document Information Panel for the content type.
Creating a SharePoint Server 2007 document library and adding the content type to it.