Custom fields & Missing Fields in Content Query Web Part

11. April 2009 12:31 by sashashev in reskining, web parts  //  Tags: ,   //   Comments (0)

I was trying to format the layout of the Custom Query Webpart similar in fashion to instructions found at http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx.

The problem was that no matter what I did in CQWP based on the announcements list the title and image appeared but the body text was not showing up.

After reading a few articles including http://martijnmolegraaf.blogspot.com/2008/12/configuring-and-customizing-content_20.html I realised that body was a custom field and so I needed to export the webpart.
Edit the exported webpart file with all my custom fields.

The line to edit looked like

<property name="CommonViewFields" type="string">
PublishingRollupImage,Image;Created,DateTime;Body,Note;EncodedAbsUrl,Computed;FileDirRef,Lookup;
</property>

Note the name followed by datatype.

Then import the webpart back in and use it as you would any other CQWP.

Webcoda, SharePoint Consultants & Web Development

SharePoint Development Sydney is a crack team of SharePoint Consultants and SharePoint Developers.

We can't tell you their names or show their faces on TV but if you need a SharePoint job done right, call them on +61 2 9370 3602 or email us at info@sharepointsydney.com.au

Persecuted by the Government and shunned by society they developed their SharePoint skills in back streets and labor camps where other programmers wouldn't dare to tread. 

During a trek through the Himalayas they stumpled upon the fabled Mossy Yak who shared his SharePoint knowledge of how to attain Nirvana through a series of Workflows and Event Handlers. Their mission is to spread this knowledge through-out the world to bring peace, harmony and document version control to all .

 

Month List