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
2k 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 ...
9
votes
1answer
1k views

Content Query Web Part - Multiple (repeated) additional filters

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 ...
7
votes
1answer
22k 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, ...
7
votes
3answers
2k 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
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
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 ...
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
3answers
277 views

“some properties in this Web Part are not available because they are configured to have fixed values”

i am working on a team site collection, and i added a Content Query web part. then i did the following:- I export the content query web part. I edit the exported web part inside SP designer . Then I ...
4
votes
1answer
3k 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
2answers
15k 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 ...
4
votes
4answers
3k 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
107 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
2answers
2k 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
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
203 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
1answer
305 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…”. ...
3
votes
3answers
8k 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 ...
3
votes
2answers
1k 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
2k 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
1k 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?
3
votes
3answers
270 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
1answer
4k 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 ...
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
1answer
993 views

Content query web part group by sort

When I enable grouping in the CQWP I can sort in either ascending or descending order based on the values in the field by which I'm grouping. How do I customize that sort order? For instance, let's ...
3
votes
2answers
2k views

In a ContentByQueryWebPart, how to generate a link to the item's display form?

I'm building a custom Xsl to customize the rendering of a ContentByQueryWebPart. This webpart is targeting pictures In the results, I would like to generate a link to the corresponding dispform.aspx, ...
3
votes
2answers
628 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
967 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
1k 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
159 views

How to filter items inside CQWP, based on Content type + People/ Group site column

I am working on a Team Site collection inside SharePoint 2013. and i want to display items that have specific content type + a people or group site column matches the login user. so i did the ...
3
votes
1answer
140 views

Unable to filter items inside my Content Query web part, if filters are based on 2 columns that are defined inside different CT

I have the following:- Team site collection, which have a content type named “Shared CT”, with fields such as ID, title, name, description, etc… Inside the Team site collection I have two sub sites; ...
3
votes
1answer
413 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
1k 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
1k 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
1answer
129 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
190 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
1answer
77 views

Display Content Query output as if it is its own Document Library?

I have a Content Query Web Part that displays certain documents from a Document Library based on metadata. But how can I get it to display as if it is it's own document Library? i.e. with column ...
3
votes
3answers
3k 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
0answers
723 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
8k 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
3answers
4k views

How to get all the list names in a site from the client side?

I try to dynamically get the names of all the lists in my site using a content query web part, but apparently a CQWB can only retrieve the items in the list, but not the list name? I'm wondering how ...
2
votes
2answers
1k 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
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
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
1answer
185 views

How to add JQuery in CQWP web part

I have created custom CQWP web part in which i am sliding news contents. I have created structure for sliding contents. Now i want to add JQuery file reference in my CQWP web part but it gives error ...
2
votes
1answer
565 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
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? ...