CQWP renders only in edit mode

I configured CQWP (Content Request Web Part) to display items from my sites. Elements are filtered based on my custom content type.

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

I have a strange problem that my web part can display data when the page is in edit mode, however when I exit edit mode, the web part does not show any data.

Any help, pointers, Sudhir Kesharvani

+4
source share
1 answer

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

To solve this problem, I exported my web part to my local computer and updated the "UseCache" property to "False"

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

It worked like a charm. My sincere who wants Michael Nemtsev

Regards, Sudhir Kesharvani

+6
source

Source: https://habr.com/ru/post/1334329/


All Articles