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)

2
votes
0answers
70 views

Linking publishing's xsl files?

I'm working on customization of some ContentByQueryWebPart. This customization consists in defining custom contentquerymain.xsl and itemstyle.xsl file. However, from one customization to another, ...
2
votes
1answer
1k views

content query web part with multi value lookup column

I am trying to work out how I can query a content type with a multi value lookup field using the content query web part. I know that natively this is not possible with ootb sharepoint 2010 however I ...
2
votes
1answer
2k views

CQWP - dynamically setting the list

I have a Webpart that extends the content query webpart, that is currently pointed to List X. On the click of a button I want that webpart to be changed to point to List Y. This seems like a very ...
2
votes
0answers
38 views
2
votes
1answer
321 views

how to use custom web part properties in CQWP

I have extended the CQWP and have several custom web part properties. One is a text field named "Header" and I would like to use it for a header in my CQWP. I know that I need to edit ItemStyle.xsl (...
2
votes
0answers
1k 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, ...
2
votes
1answer
173 views

Visual Upgrade and CQWP

We have upgraded two similar farms (one development and one test). The branding/design is identical and both farms are using Visual Upgrade. The farms have different versions of ContentQueryMain.xsl....
2
votes
1answer
756 views

SharePoint Content Query Web Part Group By, expand/contract

On my SharePoint 2007 site, I have a custom list. This list has a column "status" (with values "open" and "closed"). I can create a view on the list that groups by "status", and the view creates nice ...
2
votes
1answer
574 views

aggregate data source and pseudo join?

Is it possible to use the aggregatedatasource to show all "parents" and theirs "children" where at least one "children" is created by the current user ? To be more clear, imagine the following : ...
2
votes
0answers
1k views

Debugging XSLT in Visual Studio 2010 [closed]

I'm trying to debug XSLT for CQWP. I followed this guide. So I'm able to retrieve the XML, and link the files temporarily together using xsl:import. But then Visual Studio can't find the schema for ...
1
vote
6answers
7k views

SharePoint 2010 CQWP and Managed Metada columns

I am trying to use a content query web part on SharePoint 2010 Server and filter on site columns of type "Managed Metadata". These columns do not show up int the available columns drop down in the ...
1
vote
2answers
12k views

How to format the date column in itemstyle.xsl

I'm editing the itemstyle.xsl to produce my own styling for a Content Query Web Part (CQWP) as follows: (NB - 2 laternative lines of code are shown as (A) and (B) <xsl:template name="MyNewStyle" ...
1
vote
1answer
4k 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 ...
1
vote
1answer
6k views

How to use Content Query by query string parameters

I need my Content Query Web Part to show some content which depends on a Value of a property. Now I had no problem doing it "statically", putting in the properties the filter like: Column is equal to ...
1
vote
3answers
1k views

content query web part versus custom web part

In a publishing site, I want to create a webpart that display the result of a query with a custom display (a kind of rotator). As the goal of the web part is to be reusable and must be quite simply ...
1
vote
1answer
54 views

Changing Web Part Query Link Color

I have 2 query web parts that pull some of the latest information throughout the site into the front page. Currently I have a script editor with the following code to set the background color for ...
1
vote
3answers
145 views

Display Web-part data on all pages

Still pretty new to share point. I'm trying to get the data of a web part to display on every page but don't know how. Any ideas on how I can do this. Thanks in advance.
1
vote
3answers
6k views

I have created my own ItemStyleCustom.xsl file, how to use it for my CQWP?

SharePoint 2010. I have created my own item style file with the name ItemStyleCustom.xsl. How can I use it for my Content Query WebPart?
1
vote
1answer
228 views

Any ideas why an internal name for column begins with _x0040_Active

Content query webpart not picking field value because internal column name appears as _x0040_Active
1
vote
4answers
1k views

How to embed a CQWP into a master page or DelegateControl

I'm looking for a way to embed a pre-configured Content Query Web Part into a master page. In short, I have a SharePoint:DelegateControl on the master page and I want to plug the web part into it by ...
1
vote
1answer
20 views

Selective can view content of cqwp

Is it possible to allow selective users part of a group only to watch the result from cqwp in Sharepoint 2013 on intranet homepage?
1
vote
1answer
2k 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? ...
1
vote
1answer
1k views

Content Query Web Part only displays thumbnail images

I have a default Picture Library with some images in SharePoint 2013 online. I want to display a list of these images using the Content Query Web Part. This is working fine, except for the fact that ...
1
vote
2answers
2k views

Is there any way in SharePoint to make a Content Query Web Part hidden if no content returns?

Right now I was trying to configure a content query web part so that if nothing returned from the query, the web part was hidden (or not returning at all). Title and everything included. Is there an ...
1
vote
3answers
2k views

How to show items from only two libraries with Content Query Webpart

Salvete! I have two document libraries, and want to display the contents of both libraries in one view. Can I do this with the Content Query Webpart? Is there a way to make it display in the same ...
1
vote
2answers
2k views

Add jQuery to Custom CQWP to make scrollable - SP2010

So if I create a custom cqwp (by that I simply mean customizing the view by adding fields to webpart and modifying the xslt in itemstyle), can I apply jquery after the fact to limit the size the ...
1
vote
2answers
288 views

OOB CQWP messes up dropdowns background in IE9

Create a new publishing site Drop a CQWP onto a page, you dont even need to configure it Click SiteActions menu Problem: The background for the menu becomes transparent! I only have this issue in ...
1
vote
1answer
2k views

“Web part references an untrusted XSL file” error

We're getting this error on a SharePoint 2010 web site when inserting a content query web part (CQWP) that uses a custom XSL file: The web part references an untrusted XSL file. Only XSL files ...
1
vote
2answers
160 views

Is the @ symbol always necessary in the SharePoint ItemStyle XSLT?

I'm working on a project in which I've made a new webpart which inherits the CQWP. In the codebehind I send some additional values, which isn't present in the lists (meaning there are no columns ...
1
vote
4answers
2k views

How to set CSS class of a ContentByQueryWebpart?

Is there any way to specify a CSS class for a Content Query web part? I tried setting its CssClass property but it didn't do anything.
1
vote
1answer
1k views

Custom CQWP itemstyle with link to library

I was wondering if it is possible to somehow create a new itemstyle which has a link to the library where the items in the content query is located? Example: First ListItem Second ListItem Third ...
1
vote
2answers
510 views

When to (and how to) use CQWP, DVWP with sensitive documents

We have a certain need. In a SharePoint site, sensitive documents are collected as attachments to lists that contain business task data. A group needs to see what the disposition of those documents is ...
1
vote
2answers
256 views

Question about Displaying Documents and the CQWP in MOSS 2007

My organization is in the process of converting our intranet over to a SharePoint solution. Part of this intranet will be the movement and organization of all our internal documents. Currently, we ...
1
vote
5answers
930 views

Content Query Web Part forgets that limit is not set?

I have a CQWP that shows content from a list. Initially the standard limit of 15 elements was applied but now the need was to show all. Problem is that only every 5 or 6 times the web part shows up ...
1
vote
1answer
56 views

CQWP error:- The web part references an untrusted XSL file

I've created Announcement CQWP. I've deploy wsp on local site root http://pc99 its working fine. but when I'm trying to use it on site http://pc99/sites/Test/Pages/Home.aspx It shows error: The ...
1
vote
1answer
266 views

Changing background color on content query web-part?

Is there any way to change the background color on the query web part shown above?
1
vote
1answer
258 views

How to add a content query web part into Page layout?

In each site there is a list called "Feedback". I want to create a custom page layout that will query the "Feedback" for certain condition (e.g. latest 5 rows that URL=xxx) and list at the bottom of ...
1
vote
3answers
703 views

Sharepoint 2013 CQWP - Filter by Approval Status

I'm kind of stuck in a Content by Query Webpart. (Yes, i'm aware i'm on 2013, and yes, i could use Content by Search WebPart, but this is a standard edition, so no, finally i can't use CSWP) I would ...
1
vote
2answers
156 views

Pass resource file values to web part settings

I've created a page layout which has a content by query web part embedded in it. I would like to have the CQWP pre-configured as much as possible so that the user doesn't need to make changes after ...
1
vote
1answer
108 views

CQWP ItemStyle Divs are being nested

In short, sibling divs coded in my custom ItemStyle for use with a CQWP are being nested into each other. Stripped down to the essential structure I have <xsl:template name="...
1
vote
1answer
111 views

Showing all newform.aspx of a certain content type in a dynamic list

How can I provide the following solution? on the 'home page' of a site collection, query all lists with a certain content type ('eForms') each list entry will be a link to the 'newform.aspx' of that ...
1
vote
1answer
374 views

CQWP Grouping a custom header with formatted date

Pulled this from the web and it seems to work for the most part. However... I have a calendar on a subsite. I want to display the events on the home page of the top level site and customize the ...
1
vote
2answers
1k views

Library name in Content Query Web Part

I am fetching items from all Form libraries in a site collection and displaying name, Document Id (service is enabled in site collection features) and name of the person who submitted the form: Form ...
1
vote
1answer
989 views

Update list content using a web part

I'm currently displaying content from a list using a webpart, is it possible to update the content of this list using the webpart ? I would prefer to use an 'out of the box' web part. How can I ...
1
vote
2answers
1k views

Basic XSLT: Using contentquerymain.xsl for several CQWP's

Is there anyway of specifying a match condition to determine which CQWP is being 'passed through' the XSLT in main. Ultimately, I want to have a main.xslt file to serve several CQWP's but all must ...
1
vote
2answers
3k views

Missing Content Web Query web part in a my-site

On my-site I've created a wiki site and would like to make use of content-query-web-part, however when I Page > Edit > Insert > Web Part CQWP isn't among the available choices. Does it have ...
1
vote
2answers
693 views

CQWP or default list view webpart

I have bunch of document libraries for Sales site collection. These doc libs are by Year. These are going to be read only records. By default the list view displays everything. No filter needs to be ...
1
vote
1answer
391 views

Content Query Web Part modification issue

I am trying to display columns from 2 different lists in a site in CQWP. Most of the blogs and MSDN articles asks to modify the xslt file, ContentQueryMain.xsl and ItemStyle.xsl, for displaying ...
1
vote
2answers
580 views

Link a Content Query Webpart column to a meeting workspace

I have created a CQWP which queries a Meetings calendar. It groups the contents by month in date order and displays these columns: Meeting Date, Start Time, Meetings Title and Location. I would ...
1
vote
1answer
101 views

Sharepoint - Custom ItemStyle in a new file

how can I customize the presentation of a Content Query Web Part by modyfing the xsl it uses without touching ItemStyle.xsl but using a brand new .xsl file? I'm using MOSS 2007. Thanks