Content Query is a Web Part that displays a dynamic set of items based on a query that you build by using a Web browser. You use the query to specify which items are displayed, and you can set presentation options to determine how those items are displayed on the finished page.

learn more… | top users | synonyms (1)

10
votes
1answer
1k views

Localizing the Content Query Web Part in XSL

Has anyone managed to get the locale ID for the context of an instance of a Content Query Web Part in XSL, without extending the class? DataViewWebParts have a Language parameter passed in, but CQWP ...
6
votes
4answers
1k views

Content query web part - include data from multiple lists

Is it possible to show data from two lists in CQWP? I am having this site setup. Department site -project site 1 -project site 2 -project site 3 - ... Every site is having a blog. I want to show ...
6
votes
1answer
16k views

How to enable Content Query Web Part on SharePoint Server 2010 Standard?

I'm working with a new site collection in SharePoint Server 2010 Standard created using the Blank Site template. I would like to add a Content Query Web Part to one of my web part pages, however, ...
6
votes
3answers
1k views

How to do a for-each in ItemStyle.xsl

I'm trying to pull in custom columns from a SP list, and it works fine, but now I have to figure out how to do a for-each instead since it needs to pull in all items not just one. Here's where I am ...
6
votes
1answer
2k views

Need help with CAML in CQWP

I tried to implement a CQWP web part that could show me all the checked-out files following this guide: ...
5
votes
0answers
749 views

Content Query Web Part - Multiple (repeated) additional fiters

I am creating a Content Query Web Part as part of a feature receiver (feature activated), and adding it to a publishing page. The purpose is to filter on the Approval Status field for a Calendar ...
4
votes
1answer
2k views

Content Query Web Part Error Message - 'ddwrt' is not defined

I'm following this web article on configuring content query web part - http://erikswenson.blogspot.com/2010/03/sharepoint-2010-content-query-for-blog.html When I try to add this line to my xsl ...
4
votes
4answers
2k views

Help with CAML query

I have the following query but I am not sure if it does what I really want: <Where> <And> <Contains <FieldRef Name='Phase' /> <Value ...
4
votes
1answer
1k views

Can I use Content Query Web Parts in Foundation?

I'm looking at using a CQWP in my project, but I need to make sure it's compatible with all the SharePoint versions we'll be implementing to. I've seen some articles seeming to say it's MOSS only: ...
4
votes
2answers
1k views

How to open documents in browser from a ContentByQueryWebPart (SP2010)

In our current SharePoint 2010 solution, opening documents directly from the document-library works just fine, but when I click on the files through a CQWP, this doesn't work. Instead, the standard ...
4
votes
1answer
2k views

Content Query Web Part not rendering calendar list description field

We have a SP2010 site that we are making extensive use of the CQWP (Content Query Web Part) on. When I point the CQWP at a specific list it displays description value fine. The problem is when I point ...
4
votes
2answers
51 views

Dynamic order Numbering based on the view in sharepoint library 2010?

We are trying to do in this library, is create a column that will provide the “order” number of the listed item, per view. So in one view there may be five items that show and they need to be ...
4
votes
1answer
126 views

Sharepoint 2010 - How to prioritise/highlight Managers in a Search Core People Search?

I am using People Search Core Results in Content Query Web Parts to display departmental staff directories. A request that comes up regularly from users is to be able to make the Team Leader or ...
4
votes
3answers
2k views

Taxonomy field doesnt always show up in CQWP filter

I am using two new features in CQWP to list "related items" in a web part: Taxonomy field filtering is used to match the current pages taxonomy value given dynamically by ...
4
votes
1answer
250 views

PublishingStartDate in Content Query web part

How to process PublishingStartDate properly in XSLT of SharePoint 2010 Content Query web part (CQWP)? CQWP sends e.g. Modified date of a page (row element) in format “YYYY-MM-DD…”. ...
4
votes
1answer
1k views

Content Query Web Part: Lookup Column Value and XSL

There is a List with Lookup field. And there is a CQWP web part which uses this list as a Source and uses custom XSL style added to Itemstyle.xsl. And there is a problem how to render this field as a ...
3
votes
2answers
808 views

Can I change the bullet image that is used in the Content Query Web Part?

Is it possible to change the bullet image in the content query web part from within the Content Query Tool Part window that opens when you select Edit Web Part? If not is it a good suggestion to use ...
3
votes
1answer
1k views

When a CQWP returns no results, zones are shifted

On my main landing page of SharePoint, I'm using a few CQWPs and the Blank Web Parts Page layout. One will show your upcoming tasks, one will show the projects you're a member or lead of, etc. I have ...
3
votes
2answers
2k views

How to show additional fields within the Content Query Web Part

I'm trying to use the Content Query Web Part to display all the tasks within a site collection, I've attached images of the Web Part properties and final output below. I'm looking for information on ...
3
votes
3answers
227 views

How to alter result of a CQWP query?

On the site I'm maintaining, alle the news pages has a Note Board webpart for commenting on a newspage. On the news summary page resides a standard CQWP, displaying the most recently posted news. ...
3
votes
3answers
2k views

Content query web part

I'm using SharePoint 2007. I need to use "Content Query Web Part". This web part displays a link to the item, I need the content type to show me all the rows (item). Is that possible? I do not want ...
3
votes
3answers
2k views

Finding the Current User login in a Content Query Web Part?

I have the unique requirement of needing to get the current user's id (domain\logon) for use within a Content Query Web Part. If no documents are retrieved with the CQWP I need to craft a custom url ...
3
votes
2answers
452 views

Content Query WebPart - Group by date - SP2010

I need to display top X last modified documents and/or publishing pages. They need to be grouped by modified date. As far as I know, the CQWP does not support grouping by date. Is there a workaround ...
3
votes
1answer
1k views

Content Query webpart- CommonViewFields vs ViewFieldsOverride

I'm reading up on the Content Query web part and based on this page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different? ...
3
votes
1answer
638 views

How to point RSS feed's links to items' correct url?

I have a List of blogpost-like items, which are published through a Page on a public facing site. I'd like to provide a selection of these items as an simple RSS feed (Title & Description), so I ...
3
votes
4answers
764 views

CQWP Link to List Item

I cant seem to get my custom CQWP to link to a list item. If i look at everything exposed in the CQWP (using the showxml trick) the only thing close is the LinkURL which takes the format ...
3
votes
1answer
337 views

Content By Query filtered by managed metadata, unfiltered view = all items?

This might be an easy peasy question, but I cant seem to find an answer. I have a list and some managed metadata that I use to filter it with a content by query web part. The managed metadata acts as ...
3
votes
2answers
794 views

Remove LI wrapper from Content Query Web Part / ContentQueryMain.xsl

I have done a fair amount of experminting with this but cannot get it to work and I'm now looking for pointers or working examples. I want to customise the output of the Content Query Web Part to ...
3
votes
2answers
2k views

How do I use QueryOverride in CQWP when deploying web part instance using Elements.xml?

I need to use the CQWP with more than three filters, hence I'm going to use the QueryOverride with a CAML query like described here. I can't get this to work when deploying the web part instance using ...
3
votes
1answer
128 views

Is this custom editing functionality in chrome header area hard to develop, any pointers at all?

I am trying to develop web parts with custom functionality for editing for normal users. In the chrome bar there would be the same sort of controls as you see in the top right of your browser (except ...
3
votes
1answer
185 views

Can you use Content By Query to retrieve items from it's parents?

I know you can use the Content By Query component to retrieve items under the current site, however, I want to do the opposite. I'd like to look for items in the parent sites of the current site. I ...
3
votes
2answers
652 views

Content Query Web Part - Custom fields

I have created a Site Collection with a number of Sites that were created using the same Site template have therefore have an instance of the same List type (Issue Tracking) - 'Tasks'. I simply want ...
3
votes
0answers
600 views

Problem with getting SafeImageHtml in CustomItem.xsl of a CQWP

I have a CQWP with the Parameters: Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;| Description:{691b9a4b-512e-4341-b3f1-68914130d5b2},ShortComment,Text;| ...
2
votes
4answers
6k views

Content rotator for SharePoint lists

I'd like to build a content rotator web part for SharePoint 2010 to display list information. I'm working with the ever-popular AnythingSlider. A couple of questions: How would I let the page author ...
2
votes
2answers
1k views

Customize content query web part's look

I'd like to customize the way a content query web part (CQWP) displays a list on SharePoint 2010; the list is defined in the root and is going to be fetched in a subsite. Each subsite will pull one ...
2
votes
2answers
5k views

Changing the link in a Content Query Web Part

I have added the Content Query Web Part to my page. I've hooked it up to a custom list that I've added a Url column to. The list is displaying on my page, but the link goes to the list item ...
2
votes
1answer
511 views

How best to create CQWP and test

I'm working in SharePoint 2010 Server and creating custom content query web parts (CQWP) that point to custom ItemStyle_myTemplates.xsl file. To do this, I've been creating the CQWP in the browser by ...
2
votes
2answers
3k views

How can I filter a content query web part reading from a task list to include only tasks assigned to current user?

I have an intranet based on SharePoint 2010 that uses Active directory for authentication. I have a Content Query web part that display tasks from the tasks lists. All users have access to the tasks ...
2
votes
2answers
811 views

Content query webpart between different web applications

I am looking to present content across different Document Libraries from different Web applications. Is there a custom Content Query Web part existing?
2
votes
2answers
1k views

Web Part to Show Libraries and Contents?

Is it possible from the MOSS 2007 OOTB web parts with no custom code of any sort to create a view of all document libraries on a given site expanded to show all folders and documents within it? ...
2
votes
2answers
142 views

Blog Feed on Home Page

I am trying to create a blog feed on our SharePoint 2013 intranet homepage to show the three most recent company blog posts. I have tried with both the Content Query Web Part and the Content Search ...
2
votes
2answers
117 views

Query list types using CAML in CQWP query override?

When you export a Content by Query web part and open it up there is the <property name="QueryOverride" type="String" /> tag which allows you to put in your own CAML query to specify further ...
2
votes
2answers
606 views

How to remove WebPart from the screen if there are no items - CQWP

What do i need to do in my itemStyle.xsl to hide webpart when there are no items. When RowCount is 0. Thanks i advance
2
votes
1answer
1k views

Strip out DIV tags around rich text fields

I've noticed that SharePoint 2010 wraps rich text fields (multiline text) with DIV tags, which can be annoying. I've got a custom XSL template for the columns being pulled by a content query web part ...
2
votes
1answer
3k views

Content query web part filtering on multiple content types

Is it possible to use the Content Query web part to filter on multiple specific content types that do not have a parent/child relationship? I have a requirement to show Events (from a calendar) and ...
2
votes
1answer
60 views

SharePoint 2007 CQWP Limitations:

Morning all, I'm using SharePoint 2007 Standard SP3 I'm interested in getting some opinions on the best way to surface content from one part of a SharePoint 2007 site collection into another. I ...
2
votes
4answers
3k views

Use custom columns with Content Query Web Part

I'm trying to use custom metadata columns with the Content Query Web Part. I finally figured out that I apparently needed to export the .webpart xml file, edit it and then import it as a new web part. ...
2
votes
1answer
166 views

Group By Last Modified Date in XSL or Content Query WebPart

I need to diplay the result of my content query webpart as follows: Date modified 1 TitleTitle Date modified 2 Title Title Title I know you can't do a group by on the last modified date in de content ...
2
votes
1answer
196 views

How to Roll back Sharepoint content editor webpart

I have content editor on my team site where I added several links. But today while adding some new links, content editor crashed. so now when I tried to open site containing content editor, browser ...
2
votes
1answer
873 views

Can't read Enhanced Rich Text field value from CQWP

I'm trying to read the value of a multi-line, enhanced rich text field from a content query web part using a custom ItemStyle template in SP 2010. Even though it has a value, it keeps coming back as ...