Home >Tips > SharePoint Online from Scratch > The Content Query web part kalmstrom.com site map icon Site map  

The Content Query Web Part

A SharePoint Online tutorial by Peter Kalmström

The Content Query web part is only available when the SharePoint Server Publishing Infrastructure feature has been activated for the site collection. Then you can find it in the Content Rollup web part category.

The Content Query is similar to the Content Search web part that has been used in several earlier demonstrations, but there is an important difference in how the search is performed: The Content Search can search the index of the entire tenancy, while the Content Query only can search the site collection (default) or specified sites in the site collection.

There is a certain delay before the index is updated, so you will not see your changes right away when you let the Content Search search the whole index. With the Content Query web part any changes are shown more quickly, and therefore the Content Query is suitable for content that is often changed, like tasks. The Content Query is a bit easier to configure, as you can find all options in the web part properties.

In the demo below Peter Kalmström, CEO and Systems Designer of kalmstrom.com Business Solutions, shows how to use the Content Query web part to collect tasks from sites within the same site collection and show them on a page.

SharePoint Content Query web part in page

Add a Content Query web part that shows all tasks

  1. Open the page where you want to add the web part in edit mode.
  2. Under the INSERT tab, click on Web Part and select the Content Query web part in the Content Rollup category.
  3. Edit the web part and open the Query accordion.
  4. Add site URLs if you want to restrict the search to certain sites and not include the whole site collection.
  5. Select to show items from the Tasks list type.
  6. Expand the Properties accordion and remove the text in the URL textbox under Fields to display. Under Properties you can also group and sort the displayed items, set the number of columns and make other settings.
  7. Expand the Appearance accordion and enter a suitable title for the web part.
  8. Make any other web part settings you prefer, apply and save the page.





back icon next icon

Products Buy FAQ Services Tips Services Books Contact About Us Blog

Security and integrity

Copyright  Kalmstrom Enterprises AB  All rights reserved