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 ...
5
votes
3answers
393 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 ...
5
votes
1answer
1k 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: ...
4
votes
4answers
802 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 ...
4
votes
4answers
1k 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
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
1answer
871 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
10k 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, ...
4
votes
2answers
720 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 ...
3
votes
2answers
513 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
3answers
1k 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
1k 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
431 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
1answer
162 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
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 ...
3
votes
1answer
275 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
3answers
101 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
1answer
113 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
0answers
475 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 ...
2
votes
4answers
3k 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
916 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
2k 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
389 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
2k 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
951 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
401 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
945 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
2answers
480 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
4answers
425 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
2answers
241 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 ...
2
votes
1answer
595 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? ...
2
votes
1answer
591 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 ...
2
votes
3answers
2k views

Can I dynamically filter CQWP results using value from a Cookie?

I am able to filter the CQWP Results using the query string by using the keyword (PageQueryString) (reference: ...
2
votes
1answer
415 views

Sharepoint - CQWP to point to current site

In an ONET.XML file I build a page with a CQWP. The CQWP has a WebUrl property is there a way to set this to alway be the the current web? I tried this but it didn't work.s ...
2
votes
1answer
588 views

Best 2010 Content Query Web Part

There are already a whole lot of query/roll up webparts from 3rd party vendors on the market. Evaluating each on of these though is very time consuming. I'd therefore appreciate anybody sharing their ...
2
votes
3answers
537 views

How do I exclude list items created by certain users with the Content Query Web Part?

I have a custom list created in SharePoint 2007 and displayed by a Content Query Web Part. I would like to: Show all items to general admin users except those items created by two users. The two ...
2
votes
2answers
604 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 ...
2
votes
2answers
93 views

Creation of a “Attend” button under each Event

I would like to ask if somebody could advise me how to create an "Attend" button in the Event form which appears when clicking on an Event. The goal is that there is a list of participants visible ...
2
votes
1answer
500 views

Internal Name not working in Content Query Web Part on SPS2007

I'm trying to get and display list columns in the Content Query Web Part. Unfortunatley, some of these column names are like "WEC_ArchiveDate" or "My Categories". So I find the internal SharePoint ...
2
votes
2answers
371 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 ...
2
votes
2answers
760 views

Content Query Web Part additional filters

I've been working on a SharePoint intranet implementation and have been trying to use the CQWP to aggregate a number of announcement lists throughout our site on the homepage. I've been using the ...
2
votes
1answer
2k 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
27 views

Self Referencing Related Documents Library Through Lookup Column

I am trying to create a single document library that links to documents in the same library in SharePoint 2010 Server. I've created a multi-value lookup column that references the same library to ...
2
votes
0answers
49 views

CQWP rating control not working

I have got CQWP to display the rating control for items in a video library. I used fldtypes_Ratings.xsl to call the template in my custom Itemstyle.xsl. I managed to show the starts but its not ...
2
votes
1answer
35 views

Splitting ItemChildCount

Does anyone know how to just return the # of replies value from the built in SP field ItemChildCount? It seems to store the values as a delimited string with the ID of the item associated as a reply ...
2
votes
2answers
109 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, ...
2
votes
1answer
109 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. (turns out: Yes it was. Apparently it just works now, I must have missed something. This question can be closed. The CQWP will ...
2
votes
0answers
414 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
1answer
665 views

SP2010: Strange Content Query Web Part Behavior - Inconsistent results between users

I'm experiencing some very strange behavior with a content query web part. The web part uses no customised XSL, and is a simple query of "All sites in this site collection, from a Document Library, ...

1 2 3 4 5