Set filter in Content Query Web Part
set filtering for Content Query Web part in .webpart file:
We have 'Author' lookup field on the page with some value set and we want to show all results where 'author' in querystring is equal to 'Author' field on the queried list.
set filtering for Content Query Web part in .webpart file:
We have 'Author' lookup field on the page with some value set and we want to show all results where 'author' in querystring is equal to 'Author' field on the queried list.
<property name="FilterField1" type="string">Author</property>
<property name="FilterType1" type="string">Lookup</property>
<property name="FilterValue1" type="string">[PageFieldValue:47f60097-870f-4e7b-abdd-dc7531632386:Author:Lookup]</property>
<property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="FilterDisplayValue1" type="string">[PageFieldValue:Author]</property>