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
Sven
Hi 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
Similar Messages
-
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. -
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] -
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 -
How to display search results in content area
Hi
How can I display search results in the content area as seen in sdn.
Thanks in advance.Hi,
http://help.sap.com/saphelp_nw70/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm you find the relevant guidelines.
You can filter the PCD object setting the Search Layout Set of your Searc Iview.
In System Admin > System Configuration > Content Management > User Interface > Settings > Layout Set and duplicate the "SearchResultLayoutSet" layout set.
Then you have to duplicate its Collection Renderer "StandardSearchResultRenderer".
In its property "Resource Types to be Filtered" set as value "-http://sap.com/xmlns/pcd/app/iview".
Then assign the new Collection Renderer to the new Layout Set and that's it!
Now if yuor Search Iview uses this new Layout Set, when you search a PCD object the iviews will not be shown!
(or)
In the entry "Predefined Properties" of the search options set, you will need to enter "resourcetype(value=http://sap.com/xmlns/pcd/app/page/default)" if you want the search to be limited to resources defined as pages. Leave out /default if you dont want the end user to be able to change the filter.
If you want the parameter reflected in the URL, you can find information about how to do it here: /message/280371#280371 [original link is broken]
Check and try either ways.
Regards,
Ponneswari A. -
How to get Result Count Content By Search Webpart (ContentBySearchWebPart)?
I'm writing a webpart that extends the out of the box ContentBySearchWebPart.
Does any one know how to get the search result count from this webpart?
I did not find any property?Hi
Thanks but you are referring to the "Search Webpart". I am referring to the "Content Search" or often called "Content by Search" which is different. It's the one under Content Rollup.
Although very similar they're not - Content Search WP doesn't have that property.
What I am really after is to hide the whole webpart if there are no results coming back. I tried to figure it out and even write a jQuery that would search for the text "There are no results" message which comes from the webpart when result count=0
and hide the parent webpart that way. There will be a short flash once the page loads rendering the webpart for a split second and then disappear by jQuery - which is not great UI experience.
There is this property: "ShouldHideControlWhenEmpty" but it doesn't do anything when there are no results. The webpart is still visible. Webpart has a the Title and the Border around it so when there are no results the title and the border show
up with no results. Like I said I want to hide the whole thing in that case.
So I thought I could extend the OOTB ContentBySearchWebPart and get a hold of some kind property that would get me the result count. If the results count is 0 simply I would hide the webpart server side.
Thoughts? -
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 -
Hide / Remove Content Search Webpart when no results returned
Hi SharePoint friends
I'm looking to find a way to hide the whole Content Search webpart (including the webpart title and border area) if there are no results coming back from the query.
What I tried
1. There is this property: "ShouldHideControlWhenEmpty" but it doesn't do anything when there are no results. The webpart is still visible. Webpart has a the Title and the Border around it so when
there are no results the title and the border show up with no results. Like I said I want to hide the whole thing in that case.
2. Wrote a jQuery script that searches for the text "There are no results" message (which comes from the webpart when there are no results) and hides the webpart. However, there is a short flicker once the page loads because the webpart first gets
rendered for a split second and then disappears by virtue of my jQuery script - which is not great UI experience.
3. So I thought I could extend the OOTB ContentBySearchWebPart and get a hold of some kind property that would get me the result count. If the results count is 0 simply I would hide the webpart server side. I looked
at the documentation online - nothing I could find that I could leverage.
Help? Thanks!Hi,
To hide the whole Content Search Web Part when there is no result returned, a workaround can be like this:
In the “Web Part Properties” panel, set checked the “Don't show anything when there are no results”, set the Chrome Type as “None”:
By doing this, the whole web part will disappear when there is no result returned.
Thanks
Patrick Liang
Forum Support
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]
Patrick Liang
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 -
How To Expand And Display Recurring Events In Content Search Web Part?
I have a requirement to display all upcoming events. So I used content search webpart to display all the events, however the only problem is that I'm unable to expand recurring events all together. Is there a way to do this?
Vamsi MunagalaHi Vamsi,
Per my knowledge, where is no OOB method to achieve your requirement.
As a workaround, we can customize a web part to achieve it, querying Recurring Events using CAML Query and display the results in a SPGridView.
https://jtheblog.wordpress.com/2011/08/10/sharepoint-caml-for-calendar-recurring-events/
Best Regards
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] -
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 -
Create document preview in sharepoint 2013 content search webpart slideshow
I want to show preview of documents(word,excel,ppt or videos) in the content search webpart slideshow view. By default we can show images from picture library in the content search webpart slide show view. But i need to show preview of documents(like search
results document preview) in the help me to content search webpart slider.
Please help me to solve this issue!
Thanks in advance!
SangeethaAjithHi, Thanks for your reply. Actually m working with Sharepoint Online 2013. I need to show the doc preview
in content search webpart slideshow. If u have any idea pls let me know.
The content search webpart is fetching documents using query and we didnt know what results are going to come. For the result documents i need to show the preview. -
How to show catalog items with Approval Status:Pending in a Content Search Webpart
How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.
I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
Paul.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.
Maybe you are looking for
-
I have lost my I Pod Touch. It has no pass code nor did I activate the "find ipod" option. My major concern is that ability of those who might find it to access my facebook and mail. If I simply change password on these two sites will that stop someo
-
I am running Windows XP and I have an iPhone 4, but ever since 5 days ago I cannot even open up iTunes without it freezing my PC. This happens with our without the phone plugged in. I have uninstalled and reinstalled iTunes in the correct order and
-
The examples shown for Firefox 4 and above show a browser with the orange Firefox tab on the top left corner. In my case, the browser continues to look - and operate like the older versions.
-
Pulseaudio with VT1708S soundcard - Splitting between output,
Dear all, I would like to be able to send the sound of a specific application to a specific output, IE a video from youtube to the headphone and a skype conversation to the speakers. I installed pavucontrol and paprefs but it seems pulseaudio doesn't
-
I've successfully migrated everything from my iMac (OS10.4) to my new iBook (OS10.5) but now the new iBook won't let me change the time. I open Date & Time. Type in my location and hit return but the time won't budge.