Hi I am adding a content query web part in one of my sites and in query property I am setting the required content type and its related property but I want to display the fields in the site from content query web part.i want to show all the columns of content type in the site when I add content query web part.can anyone provide some examples or links related to this,.Thanks.
You'll need to export the webpart, and add all the fields you want, then upload the webpart again to the webpart gallery. Here is a step by step on how to do it: http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx |
|||
|
With 2010 you no longer need to export the web part to define what fields to include - you can do this via the slots when you edit the web part properties. However, Josey is correct that as none of the standard styles will display all your columns you will need to create a custom ItemStyle. I have a couple of blog posts specifically on CQWPs and others on general XSL which will hopefully explain what is needed. http://paylord.wordpress.com |
|||||
|
@Josey, If you add the content type to a list, and then configure the Content Query WebPart to read from this list, you won't have any advantage this way unless as I said in my previous answer, you need to export the webpart and make it "aware" of these new columns, then upload it again, it's something that you need to do in the same webpart's code, not outside it like in the content type or the list. |
|||
|