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
1answer
281 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 ...
0
votes
2answers
181 views

Unable to fetch data in CQWP programmatically

I have added a CQWP from visual studio. In that web part, I want to fetch the document names of the document library named "Sample Docs". My code for doing so is as follows: static void ...
0
votes
0answers
61 views

Why I dont see the Comments or Description in my Content Query WebPart?

I have created a new Content Query Web Part and didnt change the query. So I see all files on my site. I see only the title and there is an hyperlink on this title. But why I dont see the comments or ...
0
votes
3answers
2k 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?
0
votes
0answers
37 views

CQWP Not returning results for all users

I have a content query web part on a home page of a site collection that displays the latest documents on all sites and sub sites. For the administrator account with full control and two test ...
0
votes
3answers
117 views

How to query data for CQWP?

I have added the CQWP successfully to the web part page programmatically. Now I want to query data for that web part i.e. I want to display the title of the file from the document library. My code ...
0
votes
1answer
360 views

How to add CCQWP programmatically in SharePoint 2010?

I need to add the Content Query Web Part programmatically in SharePoint 2010. I exactly don't know how to do that. I searched over the internet but not find the exact post anywhere. I got this post. ...
0
votes
1answer
1k 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
0answers
201 views

Possible to create an 'Updated!' icon similar to the 'New!' icon?

The company intranet I am developing in Sharepoint 2010 has news articles that can remain featured on the front page for a long time, but is updated regularly. Is it possible to set up an 'Updated!' ...
1
vote
1answer
411 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
0answers
41 views

CQWP-Opening Excel Links through XLViewer

Just wanted to get some help with this CQWP issue. So I have a CQWP that pulls Excel and other files from multiple document libraries based on a filter. The document libraries are set to open files in ...
0
votes
0answers
92 views

Configure Content By Query Web part to open office documents in client application

Is it possible to set up a CBQWP to open links to Office documents in the Client application? This is for an Office 365 SharePoint 2013 environment. I know you can enable the Site Collection feature ...
0
votes
0answers
35 views

Content By Query Web Part Exception

I have a particular situation with CBQWP on a page. Whenever I add a new CBQWP to the page, and click save, an SPWeb not closed exception is raised. I have nothing on this page, except two CBQWPs. As ...
1
vote
0answers
290 views

Error when trying to edit Content Query Web Part in SharePoint 2013

I have a CQWP on my publishing site welcome page. When I go to edit the web part, I get a "Sorry, something went wrong. An unexpected error has occurred." screen along with Correlation ID: ...
1
vote
2answers
118 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 ...
0
votes
4answers
2k views

how to display fields in site from content query webpart in sharepoint 2010

Hi I am adding a content query web part in one of my sites and in query property I am setting the required content type and its related property but I want to display the fields in the site from ...
1
vote
2answers
921 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
0answers
114 views

CQWP bind sorting with query string

Is there a way to use PageQueryString in CQWP to control the sort order and sort by behavior? I am trying to implement this kind of sortable and filterable table with pagination: Would it be ...
1
vote
1answer
96 views

CQWP for set of libraries (instead of items)

I have a Team Collaboration site which has multiple document libraries. I have created a custom content type, so the team members can add more libraries in future. Since the set of document libraries ...
1
vote
1answer
129 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
567 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
2answers
1k 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 ...
0
votes
1answer
36 views

“Detail” column not being displayed from List

I have two lists: News Events Both lists contain the following two columns: Title (Single line of text) Detail (Multiple lines, Plain text) I am displaying News on News.aspx page using ...
1
vote
1answer
193 views

Extend SP 2010 Picture Library Slideshow webpart

I have picture library at the root site which feeds input for OOTB Picture Library slideshow webpart. I have a requirement to have Slideshow webpart on subsites as well with the same pool of pictures ...
0
votes
1answer
612 views

Content Query Web Part as “latest updates”, does not refresh/show all documents

I'm trying to create a "Latest Update" section, that shows the latest updates on a site (new documents and presentations that are uploaded or Changed). Right now I'm using the Content Query Web Part ...
0
votes
1answer
106 views

Contentbyquery web part is not filtering on content type

I have 5 document libraries on my site collection. 3 of them have content types enabled, and all content types begins with the same id. 2 of those are the standard sharepoint document librraries ...
1
vote
1answer
66 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?
0
votes
1answer
140 views

How can I add a “new item” link to the bottom of a CQWP

I assume its the itemStyle.xsl that I need to customize, but what is the code to add a "new Item Link to the bottom of a Content Query Web Part that takes you to the modalDialog for a new list item? ...
1
vote
1answer
426 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
1answer
126 views

Get Day of Week in Content Query Web Part

I am trying to create a CQWP of a Calendar List and trying to show the "Day of the Week" like "Monday", Tuesday, ect. from the "EventDate" (which is the Start Date). I'm having trouble with the xslt ...
3
votes
1answer
1k 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 ...
2
votes
1answer
214 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 ...
1
vote
1answer
231 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
2answers
587 views

Show new item notification on Content Query Web Part

I have a Content Query Web Part in the home page of my site root that points to a announcement list in a sub site. Is it possible to also show the new item notification image as the announcement ...
0
votes
1answer
376 views

Possible to add XSLT to CQWP through UI?

Using C#, I am inserting web parts into web part zones programmatically and styling them. More specifically, I'm inserting CQWP's and assigning XSLT files to them. I'm now wanting to allow users to ...
2
votes
1answer
419 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
84 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
1k 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, ...
1
vote
1answer
91 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 ...
2
votes
0answers
55 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, ...
0
votes
1answer
680 views

How can i use PageFieldValue as a parameter in Content Query WebPart 2010?

i can't get my content query webpart to save when i put a dynamic filter in it. 1) create a docset and customize the Welcome Page 2) add Content Query Web Part and set it up as per this image: 3) ...
1
vote
2answers
447 views

Remove duplicates in Content Query web part

I'm looking to use the Content Query web part in Sharepoint 2010 to return items from a list. What I'm trying to do is return a list of categories available from all the items available. This is ...
0
votes
1answer
53 views

SP 2007- using CQWP

I am trying to use CQWP (content Query Web Part- SP 2007)using a custom list (Risk Management list). I use this list on all the sub sites which I need to roll up in a single view. Can this be ...
0
votes
1answer
2k views

How to display only future events in Content Query Web Part?

I have content query web part for displaying the future events. But the web part is displaying the past events as well. For example, I had two events in March and 3 in April. It shows all five event. ...
0
votes
1answer
110 views

How to enable scrolling in Custom Query Web Part as well as library web parts?

I am using several custom query web parts in the front page of the SharePoint site to show data from a sub-site. They are document libraries and blog posts. How can I enable paging or scrolling for ...
0
votes
2answers
249 views

Set max number of items returned via Content Query or list

Any ideas if this can be done? I want to restrict the number of items returned to 5. Not sure if I can do this somehow at the CQWP or list level?
0
votes
1answer
300 views

Issue checking for contains in CQWP, comparing against Managed Metadata field

I have a unique scenario where I need to compare values for conditional formatting of my Content Query Web Part. In most circumstances this is pretty easy, and we thought this was working for the most ...
0
votes
1answer
383 views

How to dynamically pass values such as images and multiline texts to a wiki page which needs to be rendered in XSLT

I have a requirement where I have a list which contains 4 columns named 1.Title 2.Image 3.Short Description 4.Full Description. Now my requirement is that I need to display this list in a ...
0
votes
1answer
417 views

CQWP Get Author Information

I've got a content query web part displaying items from a list which includes an author column. I've managed to get the author's name and picture displaying, but I don't know how to get their ...
3
votes
1answer
334 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. I have a list and some managed metadata that I use to filter it with a content by query web part. The managed metadata acts as ...