Hi Tommy,

This relates back to the "Display text "More" in Content Query Web Part" thread 
started by Ken.

As soon as you start asking CQWP to do anything remotely useful via the UI it 
just breaks. Your best bet is to just export it with minimal settings (like 
your web/list/content type) and then provide your custom CAML query for 
QueryOverride.

e.g. <Where><Eq><FieldRef Name="CustomColumn" Nullable="True" 
Type="string"/><Value 
Type="string">ColumnValue</Value></Eq></Where><OrderBy><FieldRef
 Name="CustomColumn2" Ascending="False"/></OrderBy>

Note that the Ascending="True|False" part of the query is often required 
because the SortByDirection param often does nothing.

With regards to custom fields, you would normally have to add these to the 
CommonViewFields to make them accessible. There are various articles out there 
on customising this web part. Despite the pain it still seems to be the most 
efficient choice.

Regards,

Paul
Online Developer, ICT
CEO Sydney
From: [email protected] [mailto:[email protected]] On Behalf Of Tommy Segoro
Sent: Wednesday, 4 February 2009 4:44 PM
To: [email protected]
Subject: Content Query Web Part and Custom Field

Hi Everyone,

I can't seem setting the filter of CQWP using a custom field. As soon as I set 
the filter using custom field, there is no results returned.

Can anyone help, please? The custom field inherits from Text parent field type.

Cheers,
tommy
________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to