Questions tagged [cswp]

The Content Search Web Part (CSWP) is a Web Part introduced in SharePoint 2013 that uses various styling options to display dynamic content on SharePoint pages.

Filter by
Sorted by
Tagged with
7 votes
3 answers
15k views

What features do I have to activate to get Content search web part (CSWP)

I thought that by enabling: SharePoint Server Publishing Infrastructure (Site collection feature) SharePoint Server Standard Site features (Site feature) I would get the content search web part, but ...
Plexus81's user avatar
  • 2,250
5 votes
2 answers
379 views

Table of Content through CSWP in SPO

I'm trying to build a site map for my site collections, let's call it for the purpose of this topic a secondary navigation menu. Think of the "You are here" type of map, with the structure of a table ...
Yugo's user avatar
  • 397
4 votes
1 answer
813 views

Project Dashboard in SharePoint 2013

I`m working on building a Dashboard to show data from multiple SharePoint 2013 Lists on to the Intranet homepage. Please check the screenshot for better understanding - MY research so far has got ...
Jason's user avatar
  • 765
3 votes
1 answer
452 views

How to get top rated pages in content search web part

Hi I'm working on Content Search Web Part in SharePoint 2013. I've configured and getting document from all site collection. Now I want to get Top rated documents in Content Search web part. For ...
Kaushal Khamar's user avatar
3 votes
1 answer
554 views

Office 365 : CSWP & Display template : display custom image when no results

I'm a little stuck on a problem where i'm sure you could help me : What i want : I want to add a Content Search Webpart to a page, which check all the items added today in a certain Image Library ...
Gaelle's user avatar
  • 592
3 votes
1 answer
5k views

CSWP query - list all items in a list AND list a spesific item in another list

Is there a way to combine two list in cswp? Get all list items from "car" list Get a spesific item from "plane" list (path:"company/Lists/car" (IsDocument:"True" OR contentclass:"STS_ListItem")) ...
Plexus81's user avatar
  • 2,250
3 votes
1 answer
117 views

How to add an arrow to CSWP results

I used CSWP to show different document uploaded on the site. You can set a limit to show upto 50 items, but what if i want to see more? Is it possible to add a navigation arrow to change pages? And ...
Tanaka's user avatar
  • 275
3 votes
1 answer
1k views

getItemValue() getting the value twice?

I'm working on a Content Search WebPart which displays a list of pages. The third line, in my properties, returns a PublishingPageContentOWSHTML. But is it normal that its value appears twice, once ...
Hanayoru's user avatar
3 votes
1 answer
1k views

Query variables from URL hash javascript

I have a content search webpart that needs to show a list of events. It will page through month by month. The default month on the homepage will be the current month. Each time the user changes the ...
Rothrock's user avatar
  • 3,010
3 votes
2 answers
2k views

Filter multiple Content Search Web Parts with a refiner web part?

I have two Content Search web parts and a refiner web part on a web part page. I would like one CSWP to display list items from one list and the other CSWP to display documents from a document ...
x48572's user avatar
  • 31
3 votes
0 answers
864 views

Align web parts vertically in a web part zone

I have a page layout with the web part zone. The webpart zone is supposed to have 2 webparts - CSWP and Content Editor webpart. I need to place the CSWP above the Content Editor. I need to set the ...
Mancy Desaee's user avatar
  • 1,817
3 votes
0 answers
121 views

CSWP Picture URL

I have a site with a CSWP which lists certain sites. I would like to have a logo next to each site name. I have tried passing my url into the picture url field but the logo doesn't show up Can I ...
Gyonder's user avatar
  • 1,183
2 votes
4 answers
16k views

Sort content search web part in alpha order by title

I have a content search web part that is displaying a bunch of things from a cross-site publishing catalog. That is working just fine. But I would like to sort the items in alpha order. I would have ...
Rothrock's user avatar
  • 3,010
2 votes
1 answer
1k views

How to know which managed property is linked to a Site column

I am working with Content Search Webparts. I have a site column of type DateTime used in content type and then in a Page Layout. My Query in CSWP is to bring pages which are associated with this ...
Asad Refai's user avatar
  • 5,971
2 votes
1 answer
230 views

Audience Targeting web part property missing while exporting the content search web part?

I customized the CSWP then I exported that web part, After Exporting the CSWP web part the Audience targeting property is missing Which is from the Advanced section. I am not sure why that property is ...
Debugger's user avatar
  • 1,722
2 votes
2 answers
873 views

Content Search Web Part filter by user properties on Multi-Choices field

I'm trying to filter a content search web part by using the current user's office value {User.Office} imported from AD. I followed Ben N.'s example here: https://en.share-gate.com/blog/filtering-...
user51488's user avatar
2 votes
0 answers
446 views

List up files shared with me

On a SharePoint 2016 on-prem based Intranet I want to list up files that are shared with me (the logged in user). I don't want to list up documents the user has contribute permissions on, but want ...
Ilyas's user avatar
  • 1,341
2 votes
0 answers
36 views

Content Search Webpart Query for getting items from the list where a particular field is empty

Can someone help me with the query for retrieving list items using CSWP where a particular field value is empty. I have tried the query in the way to exclude a* b* ....z*. It works. But need a better ...
Praveena's user avatar
  • 328
2 votes
0 answers
61 views

Unable to create custom Web part properties for custom content search web part in sharepoint 2013?

I tried to create custom web properties for custom content search web part Extended CSWPby using [WebBrowsable(true), WebDisplayName("Page Title"), WebDescription("Title displayed on the page"), ...
Debugger's user avatar
  • 1,722
2 votes
0 answers
44 views

Assigning the result of the query variable to another query variable in CSWP

I am using content search webpart. I have the query that fetches all the items from a list like (HRDepartmentOWSTEXT:"a*" OR HRDepartmentOWSTEXT:"b*" OR HRDepartmentOWSTEXT:"c*"...so on). Here "...
NivethaSri's user avatar
2 votes
0 answers
97 views

Using content search web part to build a site navigation (SP 2013)

Problem: I've got a site with 15 subsites, each which in turn has many pages. I want to use a content search web part to query all sub sites, and display each sub site as a heading, with the three ...
Bearman's user avatar
  • 21
1 vote
1 answer
109 views

CSWP not working in SharePoint 2013

I`m trying to use CSWP in SharePoint 2013 to showcase data from specific Content type: PMDASH However its not pulling any values Screenshot no. 1: Screenshot no. 2: Troubleshooting: Ran Full ...
Jason's user avatar
  • 765
1 vote
1 answer
137 views

Content Search Web part not working properly for integer type of managed property

I have Site Column of type Number, Sharepoint Default created a managed property in Text type, So I created a custom managed property in the type of integer and mapped to that crawled property. CSWP ...
Debugger's user avatar
  • 1,722
1 vote
1 answer
495 views

Is there a library of example display templates?

The standard sharepoint display templates for the CSWP are very limited. I would assume that someone has already made and shared some display templates for general document searches. Are there any ...
danieldekay's user avatar
1 vote
1 answer
460 views

How to use Current Year in Content Search Webpart

I have a requirement where I need to show items where Date lies in current year. So it would be like : Show all documents created in current year. Is there a way to create a Today() managed property ...
Taran Goel's user avatar
  • 4,474
1 vote
1 answer
744 views

CSWP Sorting by Date

I am trying to get the CSWP to display all events and sorting using Start Date. The problem is that the "StartDate" field doesn't show up in the list of properties to Sort by in the Sorting Tab of the ...
Emad Gabriel's user avatar
  • 1,304
1 vote
1 answer
187 views

Search display template for content search web part for task aggregation

In a site collection, I have about 4 task list setup each on separate subsites. So on the root level, I am using a content search web part and through query, I am showing tasks from all of these 4 ...
mdevm's user avatar
  • 1,255
1 vote
1 answer
1k views

how to create custom managed properties and map for CSWP in sharepoint2013/online

Please Please I need help. I am pretty new to the content roll up web part and all about crawled and manged properties stuff. I have no access to SP2013 onprem central admin so trying to achieve this ...
MD_El's user avatar
  • 11
1 vote
1 answer
719 views

How to show users "My Open Tasks" with due date in SharePoint Online

Microsoft decided to remove task aggregation known from SharePoint 2013 when releasing SharePoint 2016. In SharePoint Online this pretty good feature is missing as well. Can anyone tell us what ...
PhilFancy's user avatar
  • 1,107
1 vote
1 answer
104 views

Content Search web part properties are not updated while creating the site using Site Template?

I took site template with Include content, In that template, there have several custom web parts and CSWP web parts. By using that template I created one site, All the custom web parts, and CSWP added ...
Debugger's user avatar
  • 1,722
1 vote
1 answer
4k views

Query Builder KQL return only items/folders at top level

I'm using content search webparts with cross-site publishing in an on-prem SP2013 site. I've got a result source that is limited to a specific library using Query text: {searchTerms?} (contentclass:...
Rothrock's user avatar
  • 3,010
1 vote
0 answers
19 views

How do I perform a query on a document set welcome page using keywords from the document set?

I have been creating a work-handling process for a materials testing group, and I want the users to be recommended related content. I created a document set that handles their jobs, and one that ...
Verus Auxilium's user avatar
1 vote
0 answers
31 views

SharePoint CSWP - Relative Paths for images

Morning folks, I recently extended a Web Application in our SharePoint farm to get ready for AD FS as another Authentication Provider. The original WA comes with the URL https://portal-int.sharepoint....
airliner's user avatar
  • 195
1 vote
0 answers
37 views

Sharepoint Web part properties will not cover in Site Template?

Whether SiteTemplate will include all the CSWP web part Properties or not? I referred this link Site Template I am clear about uses and supports of the Site template, But I am not sure whether it ...
Debugger's user avatar
  • 1,722
1 vote
1 answer
356 views

Advanced Mode not displaying in Content Search Web Part "Change Query"

I am having an issue with SharePoint Online. I am trying to integrate CSWP into some pages within a SharePoint site. However, when I attempt to change the query to modify the results, the ability to ...
JoshUA's user avatar
  • 11
1 vote
0 answers
403 views

How can I make the hover panel(for CSWP 2013) allow for displayed properties to be selected from web part options like an item display template

In an item display template you are give a lookup/dropdown list for properties to display from the content search web part. I want to understand how these are properly encoded and displayed using ...
Michael Ellis's user avatar
1 vote
0 answers
199 views

Unable to add Content by Search web part in Web Part zone in custom page layout

I am working on a custom page layout where I need to add a Content By Search web part in a Web Part zone but I am unable to do so. The following is my code: <WebPartPages:SPProxyWebPartManager ...
Mancy Desaee's user avatar
  • 1,817
1 vote
0 answers
209 views

CQWP : slider rendering two images per item

I'm coming up with a huuuuge subject : rendering an image Slider in a CQWP (SP2013, but Standard Edition, so no CSWP) So, i'm trying to create my "HomePage Slider" item template. I'm using FlexSlider ...
Gaelle's user avatar
  • 592
0 votes
1 answer
42 views

Search on a list

Is there any possibility to make a CSWP to search on a list and then return the results like a list itself? And, is it possible to this CSWP to search inside the links on this same list? I'm not sure ...
joao daisuke's user avatar
0 votes
1 answer
630 views

SP2013 - Blog Comment Count?

I am trying to style a Content Search Web Part to pull in all the blogs across a specific site collection. I'm trying to pull the following information: Blog site, author name (w/ presence), created ...
Trenton M's user avatar
  • 329
0 votes
1 answer
267 views

How does property mappings work in Content Search Web Part

I am using the Content Search Web Part to display some drone photos. In the shot below, it is showing each building with the File Name and the date/time of the photograph beneath it. I would like to ...
Martin Muldoon's user avatar
0 votes
1 answer
507 views

content search web part (slide show) with black background

I have been trying to find the correct code inside the standard template to modify the content search web part (slide show) background color from black to something else. I do not find anything in ...
susan's user avatar
  • 2,668
0 votes
1 answer
274 views

How to pass term guid to CSWP through query string

I'm following this tutorial on how to use kql to query against terms. I've set up a page with a content search web part and in the query builder I've entered this owstaxIdLocation:GP0|#ad491ed9-...
Rothrock's user avatar
  • 3,010
0 votes
2 answers
39 views

Which Webpart to fetch data from Multiple Columns in Multiple SPS 2013 List? [closed]

I want to show specific data from specific columns in Multiple SPS 2013 List. Based on my research so far, the option to build it revolves around: a) CQWP b) CSWP c) DVWP (Data Vew Webpart) Looking ...
Jason's user avatar
  • 765
0 votes
1 answer
87 views

CSWP Blog profile picture

I would like to create a Content Search Web Part that displays the user profile picture of each blog entry/creator next to the blog title from a Team Blog site (and roll that up to display the latest ...
Razzmos's user avatar
  • 203
0 votes
1 answer
110 views

Get the same display templates for CSWP as for search results

Is there any easy way to use Content Search Web Parts but to be able to use the exact same display template as already defined for search results? I tried copying the .aspx files (control and list) ...
Yoh's user avatar
  • 101
0 votes
1 answer
96 views

How to filter Content Search Webpart results on Managed Metadata term dynamically through URL Parameter

I have a landing page with a content search webpart that I want to be dynamically filtered by an URL like this one http://mysharepoint.com/site1/home.aspx?tagterm=#0a1658abf-cc9d-495c-a8cc-...
Christopher's user avatar
0 votes
1 answer
589 views

Populate page dynamically with field contents from a list

I have a Sharepoint list "SiteInfo" which has the following columns:- Site Name IP Address ISP Username I would like to be able to do the following:- On my main SharePoint site page, I'd like a ...
roybridge's user avatar
0 votes
0 answers
150 views

What is the query variable to reference a subsite's STS_Web property?

I'm looking to create a content search web part on the home page of a subsite that displays documents from the current site collection, matching a particular content type. I'd like to return only the ...
user3566327's user avatar
0 votes
2 answers
352 views

Using CSWP and getting Group By

I have around 20 libraries with about 2.000 files each. The content is being organized through the use of a Drop Off Library and metadata (Example: Department). This content is being shown and ...
Yugo's user avatar
  • 397