Content Search Webpart is not displaying certain fields from my results
I am rolling up some list data from a subsite to its parent site. The list includes the Title and Health fields. The Health field is an image column. When typing in "Health" into the second line to display for the webpart, it doesnt show anything
when I save and refresh. The Title field works, however. Another field "Created" also works but I don't need to display that column in the webpart.
Any ideas how I can fix this?
Hi,
Please change the mapping of managed properties for the fields in
the Item Display Template.
Displaying the right data in the Content Search web part in SharePoint 2013
http://www.sharepointnutsandbolts.com/2013/03/displaying-right-data-in-content-search.htmlWe
can also customize a Display template for content search web part to achieve
special requirement.
http://www.myphotoadventures.nl/2014/05/21/sharepoint-2013-custom-display-template-for-content-by-search-web-part/
Best Regards
Dennis Guo
TechNet Community Support
Similar Messages
-
Content search webpart sorting not working
Using the Content Search webpart I have created a query that rollsup all the subsites of a particular path, which is working well. However, I have tried sorting using he sort by term SPSiteURL, unfortunatly that is not working. Does anyone have any idea
what I am doing wrong.
davidhHi Cameron,
Thanks for the reply. I find that hard to accept becuase I can get the same webpart to sort like I want it to at our SharePoint Online sites, granted the sorting feature is in a diferent location within the edit webpart dialog but still basically the same
feature. Also, I would think that the SPSiteURL sort term does and should include the entire URL, which is unique to each site, which means that it should sort on the entire URL.
I think that it is reasonable to expect to be able to achieve this in some manner, maybe not the way I am trying to do it, but I have to think I am not the first person to want to present the results of subsites sorted alpha-numerically.
Thanks,
davidh -
After syncing mac address book to ipad contacts, the ipad does not display all the fields that were in Mac address book (in my case all the email addresses). Anyone have a fix?
I have a problem similar to DeeRun's.. I would like the IM fields to be synced.. I use them to send e-mails to when the e-mail field is empty or when i just want to use that specific address.. Very annoying, would take hours if not days to transfer all those IM adresses to e-mail fields in addressbook..
EDIT: not to mention the mess it would make in my address book!
Message was edited by: 1NStanley -
Choose display template based on result type - Content search webpart
Hi
Is it possible to choose display template based on result type in content search webpart same like search results web part? If not available can it be achieved programmatically?
The content search web part is queried against document content type. Based on the document type, the document has to be seen in the hover template.
Please advise.Hi,
From your description, my understanding is that you want to choose display template based on result type as search result Webpart in Content Search Webpart.
You could customize your display template for Content Search Web Part, please refer to this article:
http://www.benprins.net/2014/05/21/sharepoint-2013-custom-display-template-for-content-by-search-web-part/
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Custom Display template for Content Search webpart
Hi,
I am trying to customize the out of the box "slideshow" display template for content search webpart which renders Images.
By default, the slideshow display template has a fixed the image size which is very small. Is it possible to increase the dimensions of the container or control template to show a much larger image size?
Can anyone please help on how to do this?
Thanks,Hi,
According to your description, my understanding is that you want to increase the dimensions of the container or control template to show a much larger image size in the Content Search web part.
I recommend to create a custom Display Template (control and Item display templates) and use JQuery Slider plugin to achieve this goal.
More detailed information are provided in the link below:
http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-2.aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to display Column of a particular list to page using Content Search Webpart?
Hi,
I am having two columns 'Column1 & Column2' in a list names Demo. I need to display the items of both the columns into a page with the help of Content Search Webpart. I am using SharePoint 2013 Platform.
Expecting some useful comments on the same...!!
Warm Regards,
Tony Joy.Hi,
If you just want to display two columns of a list, Content Query Web Part will be more appropriate:
http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/10/how-to-use-the-content-query-web-part-to-rollup-data-in-sharepoint-2013.aspx
To display multiple columns, here is a similar thread for your reference:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns
Best regards
Patrick Liang
TechNet Community Support -
Content search webpart query is not rendering result as per the expectation !!
Hello,
I have 5 Content search web part on same page with different display templates.
1) Search Aggregated Result - This display search results for announcements,discussion and wiki as per the current user.
2) My websites - Thsi displays site links as per the current user.
3) My Tasks - This display task items as per the current user
4) Daily calendar - This display the results as per the date selection in calendar control.
For Daily calendar - I have specified calendar control in custom display template to filter search results based on date selection which is working as below:
I have got the reference from following link that changing the query dynamically to filter search result data -
http://sharepointificate.blogspot.in/2014/08/content-search-webpart-dynamic-filtering.html
ctx.OnPostRender = [];
ctx.OnPostRender.push(ctx,function(){
$('<div id="trCalendar" class=""></div>').insertBefore('#idCalender')
$(document).ready(function () {
$("#trCalendar").datepicker( {
onSelect: function(date) {
var groups = Srch.ScriptApplicationManager.get_current().queryGroups;
$.each(groups, function () {
// Look for query groups associated with a CSWP
if (this.displays != null && this.displays.length > 0) {
if (this.displays[0] instanceof Srch.Result) {
// Update and execute query
var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
this.dataProvider.set_queryTemplate(newQuery);
this.dataProvider.issueQuery();
selectWeek: true,
However, this date query is being applied for every search result web part mentioned in page.
How can I make it work only for the Daily Calendar web part ?
Your answer will be much appreciated.
Thanks and Regards,
Dipti ChhatrapatiDipti,
How about replacing you line as below (with content class)
var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
with
var newQuery = 'contentclass:STS_ListItem_Events'+ ' ' +'EndDate'+ '>=' + date;
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Firefox 4 not displaying certain content
On the below website, since firefox 4 was released it was working fine, but since firefox 4, it doesnt display certain text, please see below the two links provided of pictures, one displaying a picture from Microsoft IE, and Firefox version.
Microsoft IE (How it should display): http://img864.imageshack.us/img864/7798/ieimg.png
Firefox (It's not displaying certain text):
http://img841.imageshack.us/img841/2622/firefoximg.png
Now is this due to the HTML used or the browser?
ThanksThis is a little hard to diagnose from the pictures. I'm guessing that the box comes up blank at first and then is filled in from the server in real time after you make a selection from the drop-down control. Is that how it is supposed to work?
(Edit: I assumed the box was blank, but in case it is "white on white", you could try selecting that area, which would make it possible to see whether anything is there.)
Is there any part of the site that can be used without a login that demonstrates the same problem? (I went to the demo, but it's just a Flash movie...)
If not, you could check Firefox's Error Console (Tools menu). First click Clear, then reload the page that you want to use. There may be lots of warnings, but is anything marked with the "X" error symbol? Then click the link or button or drop-down that should populate the information. Check the Error Console for new errors. Although it's rare that you could fix such errors from your end, it might be possible, or you could report them to the site. -
Display Search Results of Content Search WebPart in a Calendar Style
Hi,
I have currently the requirement to gather events from calendars (event list) that are spread among dozens of site collections. Calendar rollup or overlay only works within a sitecollection (right?).
I thought that I might be able to use the Content Search WebPart for this task. Is it possible to create displaytemplates that transform the search results into a calendar like view?
Thanks
SvenHi Sven,
As I tested, I can overlay SharePoint calendars across site collections in the same web application. However, by design it doesn't work across web applications.
I'd like to confirm if you are overlaying calendars across site collections or web applications. If your situation is the former, did you recieve any error message?
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Content Search Webpart Property Filter
Hi,
I have two pages. In first page i added custom webpart with one textbox and search button. In second page i have content search webpart that should filter the result based on the property value we enter in the text box.
I added the property filter PropertyNameOWSTEXT:{QueryString.MyParameter1} to the query. I am passing the value on click of button through query string to second page. I have results matching the query in my list but Content Serach Webpart not showing any
results.
Can anybody help???
ThanksHi,
I am looking for solution to filter data on content search web part ( SP 2013) by using URL.
For example:
My URL is: http://SiteCollName/Sitename/Pages/PageName.aspx?MyParameter1=XXXX
Result : Display results that field "My field" contains XXXX.
nikita -
Limit Content Search Webpart to a specific list
Im am getting my feet wet with the Content search webpart, but I am stumbling over something that I believe should actually be easy, but I can't do it nevertheless.
I want to display only items with a certain column entry from a docstore within another sitecollection. I thought of doing this with the Content search web part.
1. In the advanced tab, I can limit the source of the query to a specific site, but not a specific docstore/List either through URL or ID. I simply get 0 results whereas leaving the ListID/ListUrl Parameter out, I get nicely all the relevant docs in the
site
path:"https://domain/sites/am/pm" AND ListID={5329496C-7D13-4417-ABD3-97E6629A32B2} (FileExtension:xls OR FileExtension:xlsx) (IsDocument:"True" OR contentclass:"STS_ListItem")
or another version
path:"https://domain/sites/am/pm" AND ListUrl=https://domain/sites/am/pm/Test_Musterportfolio/ (FileExtension:xls OR FileExtension:xlsx) (IsDocument:"True" OR contentclass:"STS_ListItem")
2. Certain Column entry: I will attempt to do this through creating a list column as a managed property and then take if from there. Found a
nice article in this Forum regarding that that Looks promising.
Any help is appreciated.
RaoulHi Raoul,
According to your description, my understanding is that there was 0 result when you search a library with Content Search web part in SharePoint 2013.
Whether you did a crawl when you used content search web part.
Please go to Central Administration, and do a full crawl for the content source. After crawling the content source , test the query in Content Search Web part, compare the result.
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Hi All,
We are migrating from on-premise SharPoint 2010 to SharePoint online 2013.
I have few questions below:
What are the possibilities and limitations of using Out of the box content search webpart?
Also, how the cross site publishing will work in SharePoint online something with managed navigations and product catalog apporach? if it is not supported, then what are the alternatives to acheive the same?
Appriciate any commnets/clarifications.Thanks in advance.
Thanks,
Dhananjay.Here are the possibilities of Content search webparts
http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/when-to-use-the-content-query-web-part-or-the-content-search-web-part-in-sharepoint-HA104206662.aspx
Compare the strengths and limitations of the Web Parts
It’s important that you understand the strengths and limitations of the two Web Parts because if you choose the wrong one, your site could run into performance problems. You can use both Web Parts to show content that is based on a query. In a simplified
world, here’s how you can decide between the two:
Use the CQWP when you have a limited amount of content, your query is simple, and you don’t expect your content to grow much in the future.
Use the CSWP in all other scenarios when you want to show content that is based on a query.
The table below gives a comparison of the two Web Parts:
Web Part behavior
Content Query Web Part
Content Search Web Part
Query configuration
Easy
You’ll need to know about certain search features such as
managed properties.
Query across large amounts of content
Limited
Yes
Handle complex queries
Limited
Yes
Scale to handle future content growth
Limited
Yes
Display content from other site collections
No
Yes (see
section below)
Design of query results can be customized
Yes, by using XSLT.
Yes, by using HTML.
Maintenance cost in a complex site architecture
High
Small (see
section below)
Narrow down the query results that are displayed in the Web Part
No
Yes, in combination with the
Refinement Web Part.
It was not there previously but then it was added to Office 365
http://blogs.office.com/2013/10/29/search-innovations-for-site-and-portal-design-in-sharepoint-online/
If this helped you resolve your issue, please mark it Answered -
To search only images in a particular folder of picture library using content search webpart.
I have Images library where i am storing images in different folders.I need my content search webpart to search and display images in a particular folder in Images Library.For ex: i need to if my Picture Library Name is 'Images' a folder inside that is
'Travel' which is having some images.I need my content search webpart to pick images from 'Travel' folder only.Any pointers to this will be helpful.Hi,
According to your post, my understanding is that you want to search images in a particular folder via content search web part.
When we use the search crawl the items in the images library, it crawls the items and folder with the following URL.
For folder: http://sp13/PublishingImages/Folder1.
For Items:
http://sp13/PublishingImages/Forms/DispForm.aspx?ID=itemID
It not crawls the items as the path
http://sp13/PublishingImages/Folder1/Item, then we could not use this path to retrieve the items in the folder.
As a workaround, we can create a custom field in the image library, such as a choice type field named
Folders(it contains the folder names), when we create a image, we set the folder name in this field.
Note: we should new a managed property manually to match the Crawled property.
Then we can use this field to filter the items in a particular folder as below, it works like a charm in my environment.
path:"http://sp13/PublishingImages" Folders=Folder1
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Building Query for SharePoint content Search Webpart
Hi,
There is a content search webpart being used for displaying the Related Items from a Page library. Whenever a new item/Page is added into the Page library, there is a column that accepts multiple values.
Now my requirement is, when a new page is added (which would be a part of custom page layout which has Search webpart) with a Column named say for Ex: 'Status' values as New, Old, Newer and when this page is opened, I want the search web part to display
all other items/pages whose 'Status' column values would have one among these.
As I do not have any idea on building the query with this webpart, any help/suggestions would be greatly appreciated.Dipti,
How about replacing you line as below (with content class)
var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
with
var newQuery = 'contentclass:STS_ListItem_Events'+ ' ' +'EndDate'+ '>=' + date;
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Content Search WebPart Template Group by
Hi,
Iam trying with no luck to créate a display template for the content search webpart with grouping by the publishing date.
I want to show news grouped by the month of the publication, but iam not being able to group the ítems by any managed propertie.
Can this be done?, if you have an example i will really appreciate it.
Thanks!!!The only form of grouping supported by the CSWP is collapsing but I guess it's not what you're after. I'm afraid you would have to implement it yourself in the Display Template.
w: http://blog.mastykarz.nl | t:
@waldekm | c: http://mavention.codeplex.com | c:
http://mavention.nl
Maybe you are looking for
-
How do you transfer Adobe Acrobat XI Pro Student version from old computer to new computer?
i just got a new computer and got my Adobe Acrobat XI Pro Student and Teacher Edition installed from my old computer; however on my new computer, it's only showing up as Adobe Reader and not the Acrobat XI Pro version. I've only had it for less than
-
Changes done on playlist on iPhone doesn't sync to itunes
I can create a playlist on the iPhone4 (latest iOS) and it syncs the new playlist to itunes but any new songs added to the playlist are deleted by itunes everytime i sync it but if i add the same song to the playlist on itunes it syncs perfectly to t
-
I have CS5 for Windows, can I upgrade to Creative Cloud and switch to Mac
I originally purchased my Adobe CS software for Windows - I recently have switched to Mac . . . so I am forced to upgrade my CS software. Can I use the upgrade discount of $29.99 a month and switch platforms?
-
How do i reformat an external hard drive for mac
i just bought a new external hard drive to back up my mac but it is not formatted for mac yet
-
DynamicConfiguration - Comma is appended in start of Soap Action
HI All, I am setting soapAction in receiver communication channel using DynamicConfiguration. I performed following Configuration in receiver SOAP adapter. Advanced Tab -> Check 'Use Adapter Specific Message Attributes' -> Check 'Variable Transport B