문제

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

도움이 되었습니까?

해결책

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:

http://pholpar.wordpress.com/2010/01/20/displaying-a-customizable-message-when-content-query-web-part-returns-no-result/

http://johnnyharbieh.wordpress.com/2008/12/29/how-to-display-a-message-when-no-results-are-returned-by-the-content-by-query-web-part-cbqwp/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top