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)

1
vote
3answers
4k 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
216 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
968 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
752 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
1k 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
285 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
2answers
154 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
941 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
500 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
896 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
50 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
2answers
121 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
105 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
259 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
766 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
652 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
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
1answer
381 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
570 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
97 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
1
vote
1answer
159 views

How to package a CQWP With its required XSL files as a SP feature?

Is there a simple way to package a CQWP with its required XSL and CSS ( and maybe js) files as a feature? The scenario I have is that i have some components in a WCM page that are implemented as OOTB ...
1
vote
2answers
7k views

Display a rich text column in a content query web part

Using SP2010, I have a list containing a column with rich text (i.e. contains html). I would like to display this column using a content query web part - but when I do, it displays the actual html, ...
1
vote
1answer
26 views

Any way to hide webpart from dashboard from particular user group?

I wan give user group permission on list view web part ,and I have sharePoint foundation version for example: all item of list don't wan a see by user it only show to hr group but user created item ...
1
vote
1answer
26 views

XSLT and CQWP : EventDate is always empty

I am trying to create an xsl template for displaying a calendar and am having an issue pulling the event date out of the calendar items. Here is what I have: <xsl:template name="DateCustomStyle" ...
1
vote
2answers
46 views

How can I remove excess code in Content Query Web Part Body text on Home page?

I have a Content Query Web Part added to a SharePoint 2010 site home page. I've got it set to pull in all Announcements from all sub sites. I've set the content to pull in the Body content of the ...
1
vote
1answer
97 views

display Webpart Title on 2 lines

I have a little question for you: I would like to display Webpart Title in 2 lines. So, from My Superbe Webpart Title going to My Superbe Webpart Title Simple, right? So i tried it, but i ...
1
vote
2answers
320 views

jquery tabs and sharepoint 2013 CQWP

I'm using Jquery tabs to display some contents from a content query webpart (used this ...
1
vote
1answer
100 views

CQWP in sharePoint online public facing website

Is there a way to insert a CQWP to the page in SharePoint online public facing website?
1
vote
1answer
88 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 ...
1
vote
1answer
445 views

Can't Design Content Query Web Part JavaScript News Ticker

I created a news list in SharePoint 2010 that shows news on the home page just like a news ticker with JavaScript. I used a content query web part to show news. This article is so useful, but doesn't ...
1
vote
2answers
336 views

Include announcement's from parent site in subsite announcements

I'm using Sharepoint Foundation 2010. I'm trying to include announcements from my parent site in my subsite's announcement list. Or atleast in a separate list/webpart above it. If its not possible to ...
1
vote
1answer
109 views

Has anyone embedded C# code in a SharePoint Content Query XSL?

Has any ever tried calling an embedded C# function from within content query XSL? Contrived example: The exception in the SharePoint log is: System.Xml.Xsl.XslTransformException: ...
1
vote
1answer
219 views

Set CQWP query to return just user documents, not built in files

I have created a out the box team site, and in a document library I have uploaded 3 files. (These files could be in different libraries) I have added a Content Query WebPart to my page, and set the ...
1
vote
1answer
211 views

ContentByQueryWebPart and numeric field display as integer

I have a site column: <Field ID="{4BB20187-638A-47A6-96EF-FFE1CA5A9A2C}" Name="NumberOfPlacesRequested" CanToggleHidden="TRUE" StaticName="NumberOfPlacesRequested" ...
1
vote
1answer
374 views

How to set ItemStyle of content query web part programmatically?

I have added a content query web part from visual studio and I am displaying the data from a document library of root site. I want to set the ItemStyle property to Title and Description and assigne ...
1
vote
1answer
564 views

Content Query Web Part select from more than one type of list/library

I have a CQWP that is pulling all recently added list items as a display of, "What's new" on a site collection. The problem I have encountered however is that the CQWP's query has to have a default ...
1
vote
2answers
150 views

How to connect two lists and produce customized reports

I have two lists. The first list, 'Suppliers', is a list of suppliers with the various contact information. The second is 'Ratings' this contains a lookup of the supplier name and various number ...
1
vote
1answer
269 views

Group template in Header.xsl not working

I have the following template in Header.xsl file: <xsl:template name="MyList" match="*[@GroupStyle='MyList']" mode="header"> <div class="row"> <div class="columns large-4 ...
1
vote
2answers
2k views

Not able to add column in content query webpart

I have one root site and three sub - sites each contains document libraries in it. I put the content query web-part in the root site querying to the sub-site's document libraries. My problem is that ...
1
vote
1answer
80 views

new list added - to show in Content query web part (CQWP)

How Content Query Web Part (CQWP) will be able to show new list added to its output? By default it cann't show new list but how to customize this?
1
vote
1answer
464 views

CQWP Multiple Value People Field Filter

I'm on SP2013. I have a content type called Projects with a multi-valued People field called Project Members and two single-valued People field called Project Lead and Client Sponsor. I'm trying to ...
1
vote
1answer
104 views

How Do I OrderBy ItemChildCount in a ContentQueryWebPart

I'm trying to order items in a content query web part from a discussion board by the number of replies to each item (ItemChildCount). Is there an easy way to go about this? Any help would be greatly ...
1
vote
1answer
751 views

ContentByQueryWebPart, how to render a user with its presence?

In a custom Xsl file, used in a ContentByQueryWebPart, I would like to display some user fields with the presence indicator. If I put <xsl:value-of select="@Author"/>, I get only the display ...