Posts

Showing posts from February, 2014

List attachment link in SharePoint 2013 search.

Issue : List attachments links are not able to show in SharePoint 2013 search. Causes: There is no clear field for the attachments in SharePoint list.So we could not get the property related to attachments in the crawl. Solution:We can manually add the field in list where we have the attachment.This field will have the attachment URL.We can make this by Item added event receiver.Now our custom field will be available in crawl property and we can able to create a new managed property, which will map the custom field crawl property. So we can edit the display template based on new managed property.Display template sample is available in the below snippet. Crawl of the list attachment arguments are given in the below URLs. http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=83 http://sajiviswam.wordpress.com/2011/11/23/are-list-attachments-indexed-in-sharepoint-search/ <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F

SharePoint 2013 list item attachment search.

Copy below highlighted content save as .html. Upload into a search template gallery and change the search result webpart template with your custom template which one you created above. <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">  <head> <title>Product and Datasheet</title> <!--[if gte mso 9]><xml> <mso:CustomDocumentProperties> <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden> <mso:MasterPageDescription msdt:dt="string">Displays the default result item template.</mso:MasterPageDescription> <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId> <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType> <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAs

Create page layout for SharePoint 2013 search result webpart.

Add new module in a under a project. Add new page with web part zone under the module and the ULR in the element.xml should be Pages.  Deploy your solution. Add your web parts in your custom page. Open the same page in designer, now you can find the spsswc:ResultScriptWebPart tag. <spsswc:ResultScriptWebPart runat="server"  DataProviderJSON ="{&quot;QueryGroupName&quot;:&quot;Default&quot;,&quot;QueryPropertiesTemplateUrl&quot;:&quot;querygroup://webroot/Pages/Dummysearch.aspx?groupname=Default&quot;,&quot;IgnoreQueryPropertiesTemplateUrl&quot;:false,&quot;SourceID&quot;:&quot;5ce35ddf-d563-4d32-b850-c45760c9a3bf&quot;,&quot;SourceName&quot;:&quot;Product Catalog&quot;,&quot;SourceLevel&quot;:&quot;Ssa&quot;,&quot;CollapseSpecification&quot;:&quot;&quot;,&quot;QueryTemplate&quot;:&quot;{searchboxquery}&quot;,&quot;FallbackSort&

Unknown error in the change query dialog of a search results webpart

Image
ISSUE This issue happens when same content type is added to root site and the subsites. Removing one content type fixed the issue. Duplicate content type ID and Name  may be present in a site. Resolution Open in a SharePoint Designer and try to identify the content type with same name.

Sharepoint 2013-Minimal Download Strategy.

Image
You might seen the page URL in sharepoint 2013 looks like below. http://sp201323:8085/sites/TeamSite/_layouts/15/start.aspx #SitePages/Home.aspx In the above URL, you are looking for home.aspx to load.But the URL targets start.aspx .Do you know what is the reason behind this? This is nothing but Minimal Download Strategy Feature. Minimal Download Strategy (MDS) is a new technology in SharePoint 2013 that reduces the amount of data that the browser has to download when users navigate from one page to another in a SharePoint site. Benefits of using MDS Using MDS provides several benefits, including: Speed:   Smooth transitions: Browser navigation controls:   Other AJAX-based systems confuse the   previous   and   next   buttons in browsers. Because MDS updates the URL in the browser window, the previous and next buttons work just as they are supposed to. Backward compatibility:   The MDS engine either provides MDS navigation immediately or detects when i