Creating Content Types
How to Create and Use Content Types
In this walk-through, you will learn to create a custom content type and apply it to a new document library.
- Follow the previous demonstration to navigate to the Site content types gallery.
- Create a new content type in the Contoso Home Site that extents the Document content type.
- From within the Site Content Types gallery page, click the Create link at the top left of the page.
- In the New Site Content form, use the following information to complete the form.
The completed form should look similar to the following image.
||Type "Work Order"
||Type "Contoso custom content type for work orders"
|Select parent content type from:
||Select Document Content Types
|Parent Content Type:
||Type "Demo Content Types"
- Click the OK button to complete the new content type creation process.
- Add columns to the new Work Order content type.
- Click the Add from existing site columns link below the Columns region on the Site Content Type Information page.
- In the Add Columns to Content Type form, select Core Task and Issue Columns in the Select columns from drop-down
box. From the Available columns list box, choose both Due Date and Date Completed then click the Add button to add
them to the Columns to add list box.
- Click the OK button to complete adding the site columns to the Work Order content type.
- Click the Add from new site column link below the Columns region on the Site Content Type Information page.Es
- On the New Site Column form, enter Estimated Price in the Column Name field. Note the Additional Column Settings
available to the Currency column type but leave everything at their default settings.
- Click the OK button to save your changes and complete the creation of the new site column.
- Assign a document template to the new Work Order content type.
- Click the Advanced settings link under the Settings region on the Work Order content type information page.
- Click the Upload a new document template option on the Advanced Settings page and then click the Browse button
to find the file.
- Navigate to the folder you downloaded the class files to and select the
work-order.docx file. Click the Open button to complete the file selection.
- Click the OK button on the Advanced Settings page to save your changes to the Work Order content type.
- Create a new document library named Work Orders.
- From the root team site, click the Settings icon and select Add an app from the menu.
- Click the Document Library link in the Your Apps template choice page.
- Click the Advanced Options link on the Adding Document Library dialog.
- Type "Work Orders" in the Name field on the New form and leave the rest of the settings at their default
values. Note that the default Document Template is set to Microsoft Word document.
- Click the Create button on the New Document Library form to complete the new library creation process.
- Click the FILES tab to open the toolbar in the new Work Orders document library.
- Click on the New Document text and arrow, careful not to click on the icon above, and note there is currently only one choice in the drop-down
menu titled New Document. Don't click on it; all you are doing is verifying that the library supports only one content type at this point.
- Add the Work Order content type to the Work Orders document library.
- Click the LIBRARY tab to open the toolbar in the new Work Orders document library.
- Click the Library Settings button on the LIBRARY tab located in the Settings group.
- Click the Advanced Settings link on the Document Library Settings page in the General Settings region.
- Click the Yes option under the label Allow management of content types? and then click the OK button at the bottom of the
page to save the change.
- You should now see a Content Types region that was not being
displayed before you made the change in the previous step.
- Click the Add from existing site content types link at the bottom of the Content Types region.
- In the Add Content Types form, select Demo Content Type in the drop-down box labeled Select site content types from.
Select Work Orders in the list box labeled Available Site Content Types and click the Add button to move it to the
list box labeled Content types to add. Click the OK button to save
- Add a new document to the Work Orders library based on the Work Order content type.
- Click the Work Orders link in either the Quick Launch menu or the Site's Breadcrumbs
to take you to the Browse
view of the Work Orders library.
- Click the
FILES tab to open the toolbar in the Work Orders document library.
- Click on the New Document text and arrow, careful not to click on the icon above, and note that now there are two choices of document types to create.
Click the Work Order link.
- Microsoft Word will open a new document based on the template we loaded into the Work Orders content type. Also note the Document Information Panel
at the top of the Word document that has fields for the custom columns you defined with the Work Orders content type.
- Use the following information in the table to fill in the Document Information Panel fields.
In the document body, change the title text "Your Company Name" to "Contoso". We can optionally fill out any additional information in the document we like.
||Type: "Fix Printer"
||Select 5 days from the current date
- Click the Save icon in the top-left corner of the Microsoft Word window.
- Click the Work Orders link in the Save As view.
- In the Save As dialog window, enter Fix Printer for the document file name and click the Save button.
- Close Microsoft Word.
- If the new Fix Printer document item does not show in our Work Orders
library, you need to refresh your browser view of it. We can do that by clicking the
Work Orders link in the Quick Launch menu.
- Click the ellipsis button next to the Fix Printer item then click the second ellipsis in the balloon pop-up. From the drop-down menu, select the View Properties link.
- Note the properties that are displayed, especially the properties that were added by the Work Order content type. These properties represent additional meta data that
is stored by SharePoint outside the document itself.
- Click the Close button to close the properties for Fix Printer.