SharePoint 2013 - SPLessons

Chapter 50

SharePoint Content Query

SharePoint Content Query

Content Query Web Part (CQWP) is used to displays the SharePoint content from another SharePoint site within the same site collection. This web part having many cool features. With the CQWP, we can control how the content is displayed. We can use html tables to format the display however we wish. we can customize the CQWP without any code and deployment in SharePoint 2013.
Use the CQWP when you have a limited amount of content, your query is simple, and you don’t expect your content to grow much in the future.The Content Query Web Part is only supported in publishing sites. Also, the site collection that contains the site must have the publishing features enabled. In any other context, the results may be inconsistent.

Example

  1. Go to the sharepoint site page click Edit Page.
  2. Choose a zone for the Web Part, and then click Add a Web Part in that zone. The Add Web Parts Web Page dialog box opens.
  3. In the Add Web Parts dialog box, here select the  Content Rollup Web Parts, select the Content Query Web Part check box, and then click Add.

Click on Open the tool panel , then side tool dilog box will open.
Here we can browse the content based on sitcollenction level or site level.

Click on Open the tool panel , then side tool dilog box will open.
Here we can browse the content based on sitcollenction level or site level.