SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I setup the display for a content query web part when no results are returned?

share|improve this question
up vote 2 down vote accepted

You can alter the OuterTemplate.Empty XSLT template in the ContentQueryMain.xsl file. This template displays a message only when the web part is in edit mode but you can modify the XSL to display it even when it is in run-mode. Check this out:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.