Quantcast
Channel: Darryl's Awesome SharePoint Blog
Viewing all articles
Browse latest Browse all 25

Content Query web part not returning all items in list

$
0
0
I created a CQWP which I used to display a publishing page content type which had a picture in it and a preview of the body of the page. This worked well but it seemed to keep reverting to showing only three items in the list instead of the 15+ that were there.

I tried clearing the cache, deleting items from my browser cache but it kept coming back. If I edited the page, it would show all items. Once I saved it, it worked however as soon as I closed the browser and went back to the page, it reverted to only showing three items again. I had deleted the page, recreated the CQWP but still same problem, so what I did was stop the web part from caching.

To do this look, export the web part, open it in notepad and look for the following line and set the value to false.

<property name="UseCache" type="bool">false</property>

Web part now works successfully!

Viewing all articles
Browse latest Browse all 25

Trending Articles