4

I have customized CQWP (Content Query Web Part) to display items from my sub sites. The items are filtered based on my custom content type.

I have cusomized the rendering of additional fields in CQWP using ItemStyle.xsl.

I am having a strange issue that my web part is able to render data when the page is in Edit mode, however when i exit the edit mode, the web part is not showing any data.

Any Help, Pointers, Sudhir Kesharwani

1 Answers1

6

I have figured out the issue, the CQWP has a property called "UseCache". By default this property is set to "True", this conflicts with the web part rendering.

To resolve this, I exported my web part onto my local machine and updated the "UseCache" property to "False"

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

This worked like charm. My sincere thatnks to Michael Nemtsev

Regards, Sudhir Kesharwani

  • Fantastic start from a new StackOverflow users - Good question and you came back to it with a clear answer and a reference. Wish all new StackOverflow users were as conscientious + 2 internets from me! – Ryan Jan 05 '11 at 12:00