Lab A(Module 9)
Implement a Content Query Web Part

This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it.

This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes.

© 2011 Microsoft. All rights reserved.

SharePoint Enterprise Content Management Implementers' Course

Contents

Task 1: Add a Content Query Web Part to the Existing Documents Site

Task 2: Configure the Content Query Web Part to Display

In this lab you add a Content Query Web Part to an existing web page. Youthen configure the Content Query Web Part to display only documents based on the Contoso content type and set theconfidentialitylevel value toPartners.

Task 1: Add a Content Query Web Part to the Existing Documents Site

In this task you add a Content Query Web Part to an existing web page.

  1. Using Internet Explorer, navigate to the Documents site located at This link is included as a favorite link.
  2. Click the Site Actions drop-down box and select Edit Page.
  1. Locate the Right Web Part zone and click the Add a Web Part link. It is located in the body of the page in the right-hand column.
  1. Select the Content Rollup category in the Web Part gallery.

  1. Select Content Query in the Web Parts pane.

  1. Click Add to add the Web Part to the Right Web Part zone.

Task 2: Configure the Content Query Web Part to Display

In this task you configure the new Content Query Web Part to display documents located in document libraries that are based on the Contoso content type and have a Confidentiality Level value of Partners.

  1. Click the open the toolpane link displayed in the Content Query Web Part.
  1. Expand the Query Category in the Web Part Property Pane.
  2. Select the Show items from the following Site and all subsites radio button.
  3. Click the Browse button and select the Documents site.

  1. Click OK.
  2. Select Document Library for the List Type.
  1. Select Custom Content Typesfor the value from the first Content Type drop-down box.
  2. Select Contractsfor the value from the second Content Type drop-down box.
  1. Set the first Additional Filter to show items when Confidentiality Level is equal to Partners.
  2. Select ConfidentialityLevel in the first drop-down box.
  3. Select is equal to in the second drop-down box.
  4. Select the icon located next to the criteria text box to select the confidentiality level.

  1. Click Partners. Click Select and then OK.

  1. Expand the Presentation node in the Web Part Property Pane.
  2. Verify that the Sort Item by drop-down box is set to Created.
  3. Verify thatSort is set for descending order.
  4. Set the Limit the number of items to display to 10.
  1. Verify the Group style is set to Default.
  2. Select Title, description and document icon for the Item style.
  1. Expand the Appearance node in the Web Part Property Pane.
  2. Set the Title to Confidential Level – Partner Documents.
  3. Click the OK button located at the bottom of the Web Part Property Pane.
  4. Click the Stop Editing ribbon button.

The Content Query Web Part should now display a list of documents that contains Partners in the Confidential column. The style should match the surrounding CQWPs.

1