Tag Info

Hot answers tagged

2

You can add two pages and two search verticals. The search criteria you should use is Edit Content Search WebPart Click Change Query Select a query = "Result Source" from the drop down. Here is a walk through http://www.sharepoint24x7.com/2014/10/01/article-customizing-sharepoint-2013-results-using-result-sources/


2

You are including four scripts to be used in combination with your display template. I think that your problem is related to the fact that a script is not yet loaded. It can happen that a script fails to load, or that it has not yet been loaded. $inlcudeScript does not ensures that your scripts are loaded at the moment you want to execute your code. My ...


2

What you need is to create the UL and DIV element in the control template and push your content in it via the item template. Now because you are working with display templates, this can only be done onces the rendering is complete, because at that time, the HTML is placed on the page. My approach is to add your list items and description values to two ...


2

When working with a Display Template you have to request Managed Properties from the Context of the current item. The general process is: Crawl content Map crawled properties to Managed Properties Crawl Content again Create a new Display Template (often by copying an existing template) Add a reference to your custom managed property in the display template ...


1

Another option would be to add a content query webpart in the page - edit webpart - click Change Query - set keyword filter as Query from the search box - give path:Your library path Apply and save the page and try it out. You could refer this blog article for more information on configuring the content query webpart: Configure Content Query Webpart Edit: ...


1

You can make use of query string filtering. Create a new view for the document library and set filter to use {FilterQueryString} and apply necessary condition Create a new wiki page and then add the library webpart - Then set the view = new view create in step1 above In home page edit the page and add a new Script Editor WebPart and use <script> ...


1

This is not a setting what you can change. This feature comes with the View of the List or Library. This option gets displayed on the View when the view Style is set to "Default" You can read this http://www.sbrickey.com/Tech/Blog/Post/SharePoint_Feature_Request_Deploying_View_Styles to find more about the Styles and how to set it via PowerShell.


1

This is the solution: ContentType="Project portal" and SRExperienceRecord="True"


1

Yes. These type of queries are possible. You can do this by two possible ways Edit the Search Result WebPart and change the Query Criteria to query particular library By Creating a Result Source to query particular library For Creating result source - Check this blog ...


1

Please try below code: <xsl:choose> <xsl:when test="srportalurl!= ''"> <a> <xsl:attribute name="href"><xsl:value-of select="srportalurl" /> </xsl:attribute> <xsl:value-of select="srprojectname" /> </a> </xsl:when> <xsl:otherwise> <xsl:value-of ...


1

You can use following code in the display template <div title="_#= $htmlEncode(line4.defaultValueRenderer(line4)) =#_" id="_#= line4Id =#_"> _#=STSHtmlDecode(line4.value)=#_ </div> Source - https://ingessharepointnotes.wordpress.com/2014/03/04/sharepoint-display-templates-display-enhanced-rich-text-field/ Another example var desc = ...


1

These columns need to be mapped from crawled properties (the on that the search have found) to the managed properties. This mapping won't me made automatically. How this mapping can be done and what the difference between mapped and crawled properties is can be found here: The search schema in SharePoint 2013 Manage search schema in SharePoint 2013 You ...


1

you need to customize the item display template, Go to Design Manger and then Go to Design Templates, download the item display template and then you can modify it and save it with a new name. here you go with an code example. ...


1

I figured it out. Went to the Result Source Launched the Query Builder Selected Show All Managed Properties and then selected ContentSource Select Not equals and selected a manual value and typed in the content source that I wanted to exclude.


1

I think the problem relies on the nature of the search results web part. When you access the page from the browser the search results are returned from the server in JSON format. You can check this by using Fiddler and checking the response of the ASPX page. For obvious reasons, the crawler tends to ignore the contents of the "script" tags, thus not ...



Only top voted, non community-wiki answers of a minimum length are eligible