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)

0
votes
1answer
248 views

Effectively Querying Subsite RootFolder.Properties

I'm storing some data in the RootFolder.Properties for a bunch of subsites, sub-subsites and sub-sub-subsites. On the parent site(s), I want to roll up that data, security trimmed for the user. (All ...
1
vote
0answers
72 views

Weekly Email from content query web part

We have several announcement lists we want to consolidate into a single weekly email - we do not want X separate emails being sent to each user. We can roll them up into a content query webpart but ...
0
votes
2answers
2k views

Rendering images in a content query webpart

I have a bunch of images in a picture library that I want to expose on my Sharepoint homepage. I've added a Content Query webpart and configured it to display the items in the picture library list ...
3
votes
0answers
525 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;| ...
4
votes
4answers
2k 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 ...
2
votes
0answers
882 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
vote
1answer
1k 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
486 views

Inserting webpart in pagelayout

I have a custom webpart which inherits from the CQWP and I want to insert and configure it in one of my pagelayouts. I do this using SharePoint Designer and it's no issue inserting it. It's the ...
0
votes
1answer
233 views

Opening videos in browser with XsltListViewWebPart

I created a Document Center site which has its own Content Query Web Parts. When I upload a video file to this document center, the Content Query Web Parts are playing the videos in browser with modal ...
1
vote
2answers
149 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 ...
0
votes
2answers
2k views

Custom xsl files for content query web part in location other than Style library?

Can we put our custom xsl files for CBQ in a location other than Style Library (in Layouts directory in 14 hive for instance)? Trying to do so is giving me the following error : "The web part ...
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 ...
2
votes
2answers
124 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 ...
1
vote
3answers
177 views

SharePoint XSLT and FF + Safari

I'm currently working on optimizing a clients website for all big browsers (IE, FF, Safari, Chrome, Opera) and I've encountered unsolveable issues (for me at least) here regarding the CQWP & ...
2
votes
1answer
164 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 ...
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.
0
votes
1answer
451 views

Content query WP with more than two filters

We're using a content query web part (CQWP) to pull a list into a sub-site from the root site of the site collection. Is it possible to define more than two filters on a CQWP? Any reason why the CQWP ...
0
votes
1answer
107 views

Aggregating lists based on content type

We've got some lists that we plan to aggregate using a content query web part (CQWP) later, using a custom content type. The content type will be used on numerous sites within a site collection, but ...
1
vote
4answers
835 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
413 views

Advanced filtering in the ContentByQueryWebPart

I have a webpartpage with two CQWPs. I want the first to show all pages for the current site, and I want the second to show all pages for the subsites of the current site. As I can see, there's no ...
0
votes
1answer
729 views

CQWP Audience Targeting Not Working

When using audience targeting on a CQWP it works when you set the target on the web part but when you set the audience on the items in a list it does not display any items. Does anyone have any ...
0
votes
1answer
132 views

How to create a webpart with a picture and some lines of text

I am using SharePoint 2010 Standard edition and on my home page I want to create a webpart which includes a picture on top and under the picture a 10 lines message. Dont know which webpart type I ...
1
vote
0answers
41 views

Which Web Parts should get installed in SP2010 Update?

Per Dave Wise's answer(http://sharepoint.stackexchange.com/questions/13110/get-web-part-name-from-guid): Thanks, that worked great. However, even though my SQL Query returned 9000 results, about 18 of ...
0
votes
1answer
154 views

Help with ContentQueryMain.sxl

I'm creating a CQWP that i want to style without the <ul class="dfwp-list"> ... wrapped around it. I know the html is created via a variable inside OuterTemplate but For this QCWP i dont ...
0
votes
1answer
313 views

Connect to a view from a CQWP

Is it possible to point the CQWP to a list view? We have implemented 3rd level navigation using subsites and now the subsites can't read the lists in the parent unless we use a content query web part, ...
1
vote
1answer
1k views

Content Query Web Parts are not showing up in pages with the Page Layout they are set to

I'am back again with another question. I have a Pagelayout and want to add a Content Query Webpart as Menu. I created a Webpartzone and added a Webpart. <WebPartPages:WebPartZone ...
2
votes
2answers
1k 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 ...
1
vote
1answer
332 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 ...
0
votes
1answer
97 views

Seamless upgrading of content query web parts

Is there a tool or check list for upgrading content query web parts in 2007 to 2010?
5
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: ...
2
votes
1answer
524 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 ...
0
votes
1answer
842 views

Use of custom fields in CQWP

We have a custom field in a custom page type to denote the published date. A cqwp is used to retrieve a list of pages from a pages list and we need to display this published date. Normally this would ...
1
vote
1answer
2k views

CQWP - Get Current Web URL

I am customizing the ItemStyle.xsl in SPD2010 for a CQWP crawling a whole site collection. I need to use the current web as a variable. I tried multiple options: Option #1 - use server variables in ...
0
votes
1answer
339 views

CQWP - using custom column as LinkUrl not working

I have a custom list with custom column - DetailsLink. I would like to render this link in the result of CQWP. So, my understanding I have to modify ItemStyle.xsl By default - it generates link to ...
2
votes
4answers
5k 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 ...
1
vote
1answer
664 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 ...
2
votes
1answer
475 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 ...
3
votes
1answer
181 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
995 views

Using page properties as web part properties

Specifically in the content query web part, can I filter by a column whose value is passed in based on a particular page property (the pages have some custom columns to aid in SEO and indexing, one of ...
1
vote
1answer
553 views

CQWP slots are not displaying

I wrote this code in itemstyle.xsl <xsl:variable name="AssistPrinEmail"> <xsl:value-of select="substring-after(@AssistantPrincipal1Email,',')" /> </xsl:variable> ...
2
votes
1answer
736 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
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 ...
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: ...
0
votes
1answer
2k views

content query webpart itemstyle wrapped by group style in XSLT

I have the following markup: <ul id="slider"> <!-- slider item --> <li> ... </li> <!-- end of slider item --> </ul> and I have ...
1
vote
2answers
324 views

How to use the CQWP webpart to provide data to other web parts?

This might be foolish question, but I am new to the SharePoint 2010 environment. I want to fetch data from a SharePoint list using the CQWP web part. I then want to use this web part as the data ...
1
vote
0answers
408 views

2010 Recent sub Site Wiki Page Changes Rollup with Content Query webpart

I have a my SharePoint 2010 enterprise implementation. I am trying to implement a Webpart in a site that shows all the latest changes from a sub site wiki libraries. Unfortunately the result set is ...
2
votes
1answer
428 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
1answer
612 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 ...
1
vote
1answer
532 views

Content Query part & blog PostCategory issue with single category

I'm using the content query webpart to query a blog list and it is working well for the most part, the issue i'm having has to do with the categories that the blog has been associated with when a blog ...