Contents
You can add the Content Query Web Part (often called CQWP for short) to a SharePoint page by going into Edit mode (Site Actions > Edit Page), then click the Insert tab and choose Web Part. Click the Content Rollup folder and select Content Query Web Part.
On the Page menu, point to Add Web Parts, and then click Browse. Select the Web Part to import from the Web Part List, and then click OK. Drag the Web Part to a Web Part zone on the page.
When to use web part and web part?
You can use both Web Parts to display content based on information from your site navigation. For example, when a visitor goes to a page, the Web Part on that page automatically issues a query that contains information from your site navigation. The search results are displayed in the Web Part.
How to separate fields in content by query web part?
Use a semicolon to separate the fields when combining definitions in one statement. For example: CommonViewFields is an additive property, which means that you can add a common view field on top of base fields that the Content By Query Web Part always requests.
Content roll-up and aggregation from multiple sites has always been a big Matzo Ball in SharePoint. If you wanted to achieve some content aggregation in old (classic) SharePoint, you had to rely on either a Content Query or Content Search Web Part. And while they allowed to aggregate data in one place, user experience was terrible.
Can a content by query web part have more than one commonviewfield?
This property is additive, meaning that you can add more than one CommonViewField to a Content By Query Web Part and extend its base properties, such as FieldDescription and FieldLabel. Bypasses limits to query behavior imposed by the Content By Query Web Part UI.