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.

191 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
54 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
0answers
842 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
2answers
249 views

SharePoint 2013 Content Query Web part

I have added a SharePoint 2013 Content Query Web Part for displaying news items from a blog subsite, and would like to add a filter, so that, only "Publish Date" + 30 days will be displayed in the ...
3
votes
2answers
308 views

Sharepoint 2013 'Change Query' button does not work in Content Search Web Part

I'm trying to change the result source of Content Search Web Part, but when i click on the button 'Change Query', in web part properties, the page postback and the dialog does not showing up. In ...
3
votes
1answer
1k views

Format Date in Content Query

I have looked through too many threads about this and have made no progress. So far the following links have helped me the most: Content Query WebPart & Date How to format Date in Content ...
3
votes
0answers
130 views

XSLT Force Time Zone

Using XSLT, is there a way to show the time for a specific time-zone? e.g. Resolved: <xsl:value-of select="ddwrt:FormatDate(@ResolvedDate, 3081, 2, [TimeZone])"/>
3
votes
1answer
86 views

Display Content Query output as if it is its own Document Library?

I have a Content Query Web Part that displays certain documents from a Document Library based on metadata. But how can I get it to display as if it is it's own document Library? i.e. with column ...
2
votes
0answers
26 views

Grouping issue on a content query

I have created a content query pulling in a summary of the page library content. When I group the content based on “Topic”, I get the correct result for how I want the page organised, however all the ...
2
votes
1answer
309 views

Add filters/refiners to CQWP webpart

I am on SharePoint Online environment, As a high level summary, we currently have pages that use a PageQueryString as a filter for a CQWP. However, from the results that are displayed within the web ...
2
votes
1answer
95 views

Content Query Web Parts does not show items after migration

I migrated from SharePoint 2010 to SharePoint 2016 and found that Content Query web part on the Home page does not display items. I have not changed any configurations after the migration. The Content ...
2
votes
0answers
53 views

How to use GroupBy in QueryOverride for Content Query Web Part in SharePoint 2016?

I read a lot of forums, questions and answers and it looks like using GroupBy in QueryOverride is not taking in consideration. Here are the several ways I tried without success. Option 1 <...
2
votes
0answers
38 views

Sharepoint 2010 Conditional XSL Style based on field values?

I am working on a Sharepoint 2010 site. I have a content query webpart with a custom itemstyle template. The items pulled in via the query have a few custom columns (multiline text, image, singleline ...
2
votes
1answer
398 views

SPO 2013 content query web part: change link field if “link” field is empty

I have a field of type hyperlink in a blog list and I want the title field to link to that URL if it's populated but to default to the list item URL if not. I added the display (and internal) name "...
2
votes
0answers
47 views

Creating a custom content query web part

The basic gist is that I would like to create a content query web part that shows the 10 most recent documents in the project provided by the URL parameter. I currently have it set up such that all ...
2
votes
1answer
163 views

How to get Posts with Content Query out of only one Blog-Category

I'm completely new in SharePoint, but today I was able to get the titles of posts out of a blog into the main page of my site collection. That was easy. But now I want more: Is it possible to ...
2
votes
2answers
2k views

Getting hyperlink URL and description in custom XSLT with Content Query Web part

I'm having trouble getting the URL and description to show as separate items in SharePoint 2013. I'm trying to display the description as the text of the Link and the URL as the HREF value in the a ...
2
votes
0answers
185 views

CQWP XSLT ddwrt:Today() return PST time zone instead of Local time zone

I am working on CQWP webpart in Office 365(SharePoint Online). I have to get today's date for date comparison. I have use xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" for ...
2
votes
1answer
39 views

Content Query Web App - Additional Filters Question

I am trying to setup a content query to look at documents checked out to [ME] so that users can see what files are checked out to them. However, the Checked Out To filter is not in the Additional ...
2
votes
0answers
294 views

Set view fields in content query web part programmatically

I am using the code below to update a web part on a home page, it sets the correct settings but when I go to the page with the web part it doesn't pick up the links from the Navigation list. What I ...
2
votes
0answers
125 views

How to make CQWP retrieve 4 most recent Items in the whole site collection?

I'm a little stuck with one of m Content Query Web Part: On my homepage, I would like to display the 4 most recent items added to my site collection in a Content Query Web part called "What's new?" ...
2
votes
0answers
335 views

XSLT, regex and RenditionID

I'm sort of new in XSLT, and i need some clues, if you're willing to give me some... What i want: In a CQWP, i want to display items' images, with a certain rendition ID. But, when retrieving the ...
2
votes
1answer
75 views

Importing CQWP second time changed the Field name to a Guid

I have a publishing site in 2013, pretty much OOTB. It has a news section as well which is where I created a bunch of news articles and everything is published. I then went to create a CQWP on the ...
2
votes
2answers
3k views

How do I create an news page in SharePoint 2010 and have feature articles on the home page?

I have been tasked with creating the home page of our department's intranet page. I am a beginner admin for SharePoint and need help with the following: My department needs a news page which will ...
2
votes
0answers
104 views

Customize Content Query Web using Internal Names not guides

I am trying to configure the Content Query Web Part to show my custom fields defined in the underlying content type. The following code snippet is placed in a custom template in the ItemStyle.xsl ...
2
votes
1answer
302 views

How do I create a custom calendar using the Custom Content Query Webpart?

I currently have two sites right now, a Parent Team Site and a sub team Site. I am trying to use the content query webpart to pull the Calendar entries from the sub team Site into the Parent Team Site....
2
votes
0answers
470 views

CQWP display custom field from all lists in subsite

I am trying to build a CQWP to display custom fields on list items from several lists in a subsite. So far i have configured the CQWP.webpart file to display the custom field when i query by "Show ...
2
votes
0answers
205 views

XSL returning only XML result

I'm attempting to use a Content Query webpart to display a calendar but instead of getting a styled result I get an XML result that looks like this: <dsQueryResponse> <Rows> <...
2
votes
0answers
669 views

SharePoint 2013: CQWP Link slot not grabbing item hyperlink

In SP 2010 you simply had to add URL [Custom Columns] in the Link slot to have it use that as the hyperlink address for the displayed items. This no longer appears to be the case. When I enter that as ...
2
votes
0answers
77 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
0answers
765 views

Filter a CQWP on a Lookup Column

I'm creating a custom page layout that contains a CQWP that I'd like to display documents related to the page. The document library has a lookup column that relates to the page title in the Pages ...
2
votes
1answer
454 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....
1
vote
1answer
20 views

Adding to Content Query Snippet

Can anyone tell me if it's possible to edit a content query HTML Snippet. I am creating a page layout in SharePoint designer, and a using the snippet editor to create the Snippet code to drop into ...
1
vote
1answer
693 views

The “XsltListViewWebPart” Web Part appears to be causing a problem. Unable to find the specified file

I have a SharePoint Online Site Classic team site template. I also have 1 blogs site as subsite underneath it. On top level site i am using content query webpart to publish blog items from blogs ...
1
vote
0answers
54 views

Content Query Multiple columns within each header

Does anyone know of a way to enable groupings on a content query web part which displays results in 3 columns? I have been able to create 3 columns display But the results are all shown only after all ...
1
vote
0answers
60 views

Displaying a multi value column (person or group field) in CQWP

I can return person or group column(I have selected this field to allow multiple values - People Only) like this "Name1;#24;#Name2;#34". How can I return something like this Name 1, Name 2 etc.. I ...
1
vote
1answer
83 views

Design Manager: Content Query (Enterprise Wiki)

Using Design Manager, Is it possible to filter the Content Query web part using the Wiki Categories? For example, if the current wiki page has a category of InfoPath, the Content Query web part ...
1
vote
1answer
29 views

SP2016 - Content Web Search Part - all Tasks in all SiteCollections

I am new to SHarepoint and new to this plattform - so please excuse in case this is a not wise question :-) We have an intranet on the basis of sharepoint. Each department has its own site ...
1
vote
0answers
85 views

Dynamically Update Content Stored on Another SharePoint Site's Lists

I am attempting to embed list content into SharePoint pages/wiki pages that is stored on a separate site. I think some of this information might not be relevant, but I am going to include it so that ...
1
vote
0answers
22 views

Sharepoint Online/2016

Does anyone know how to display an image when using the "Search driven content" --> Wiki Pages Web Part? Ive tried messing with the "managed properties mapping" but nothing seems to work and I havent ...
1
vote
0answers
391 views

Sharepoint Content Query Webpart from content type with additional columns shows empty slots and not all data

i have a strange problem with CQWP I have a list contenttype that is assigned to some lists. Now I want to use a content query webpart to show all items with additional columns based on this content ...
1
vote
1answer
63 views

Unable to view list library in content Query web part

I have a new CQWP and when l export the WP and insert it into the page layout when l create a new page it adds the CQWP but the it doesn't show the list l have selected in the Query under "show items ...
1
vote
0answers
31 views

Item with published hyperlink field redirects to different page when field is blank SP 2010

I am currently working on a site in sp 2010. I have a cqwp that displays news items from a list using a custom itemstyle. Each news item has a published hyperlink field used to link off to the source ...
1
vote
0answers
418 views

Content Type not queryable in Content Search Web part

Essentially what I'm trying to achieve is to have a page with two Content Search Web Parts that each pull back items of a specific content type. To do this I have created a few custom content types on ...
1
vote
2answers
600 views

Content Query Webpart (CQWP) Pagination in SPO

I am trying to paginate a CQWP results set but I am struggling with XSLT. Is there an easy way to do it? Should I work directly on the ItemStyle.xsl? Should I use jQuery instead? I can't believe ...
1
vote
0answers
219 views

Content Query Web Part for multiple lists

In my site collection, I have a bunch of custom lists that contain Requests that employees have submitted (IT Request, Maintenance Request, etc...). I'm trying to set up a CQWP that aggregates all ...
1
vote
0answers
44 views

Display information from two separate lists in single CQWP?

I am working on a project within a Sharepoint 2010 site. I have a list of items that are news articles, custom content type and columns. I also have a list for departments, these contain a variety of ...
1
vote
0answers
27 views

SharePoint Online - Content Search Query

Are there any possibilities to customize this Content Search Web part..? Because in here it only show the Title and Description. Am I able to customize it according to my need.