Questions tagged [content-query-web-part]

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.

12
votes
1answer
30k 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, ...
11
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 ...
10
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 event....
7
votes
3answers
3k 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
2k 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 the ...
6
votes
1answer
85 views

Content Query Web Part - Change Content Type upon link opening?

[Edited from original post] I'm trying to open the links that come up from my Content Query Web Parts. However, I'm having a problem which I'll now explain: In my list, I have four content types - ...
6
votes
1answer
2k 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: http://www.the-north.com/sharepoint/post/Further-Customise-CQWP-to-Display-Draft-and-Checked-Out-...
5
votes
2answers
35k 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 ...
5
votes
3answers
748 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 ...
5
votes
3answers
3k 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 [PageFieldValue:...
5
votes
0answers
53 views

Content Query Web Part does not appear in mobile view

I have successfully created several CQWPs on our intranet homepage to pull announcements from team sites as well as list events on Community calendar. These can all be viewed on the desktop, laptop, ...
5
votes
2answers
2k views

How to display document approval status in a content query web part?

I have this XSLT to display document title and approval status <xsl:template name="DocumentStatus" match="Row[@Style='DocumentStatus']" mode="itemstyle"> <xsl:variable name="...
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
1answer
7k views

Display Template Render HTML in list item

I am building a display template for a CSWP. One of the properties is a multi-lined textbox and some HTML is stored with the actual data. How do I go about rendering this html in my display template? ...
4
votes
4answers
4k 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

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
186 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
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 ...
4
votes
2answers
3k 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
1answer
5k 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 ...
4
votes
1answer
707 views

Project Dashboard in SharePoint 2013

I`m working on building a Dashboard to show data from multiple SharePoint 2013 Lists on to the Intranet homepage. Please check the screenshot for better understanding - MY research so far has got ...
4
votes
1answer
242 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
355 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
0answers
841 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;| ImageUrl:{543bc2cf-1f30-488e-...
3
votes
3answers
8k 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 ...
3
votes
1answer
6k views

How to format Date in Content Query Web Part?

I have a CQWP in which I am querying the data from a document library. ItemStyle being used is "Title and Description" Title displays the title of the Document and the in Description I have given a ...
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
3answers
13k 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
2k 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
2answers
1k views

List Throttling Threshold Workaround for CQWP?

Is there a good way to get around the list throttling threshold? Here is my scenario: We have our top level site in a site collection with department sites beneath it. A few of the department sites ...
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
1answer
2k 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
3answers
313 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
3k 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
337 views

Display Content Query in slideshow

I've created sub-site as a Blog site for news and I want to display that news in the home page of the root site as a slide-show. Item's fields that I want to display are: title, rollup image and body.
3
votes
1answer
213 views

Content query group by field

I have content query webpart that queries data from a custom list and I am using a custom xsl style to display the items everything works fine. The issue that I have is I have a column called Category ...
3
votes
3answers
3k views

How to get the List url in Content Query Web part?

I'm using a content query web part to display data from lists which are located in different subsites. So far I've been able to display items, but one of the requirements is that I've to display the ...
3
votes
2answers
3k 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
2k 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
748 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
1k 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 http://...
3
votes
1answer
3k views

Content Query Web Part - No Results

How can I setup the display for a content query web part when no results are returned?
3
votes
1answer
627 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 ...
3
votes
1answer
901 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
594 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; ...