Change Browser Tab Icon of SharePoint 2013 Farm Solution

Standard SharePoint 2013 Icon

Screenshot 1

Steps:

  1. Find the Element “SharePoint:SPShortcutIcon” in the MasterPage;
  2. Change the URL, e.g. <SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/15/images/myProject/myicon.ico"/>

Attention: be sure, Browser Cache is refreshed and IIS is reset.

The icon is changed as follows.

Screenshot 2

Advertisements

Hint of My Visual Studio Shortcuts

Edit Code:

  • Delete to the word from Beginning or End (Ctrl+DEL => forward, Ctrl + Backspace => backward)
  • Move the cursor one word to the left/right (Ctrl + Left/Right Arrow)

Debug/Run:

  • View in Browser: Ctrl +Shift + W

Search:

  • Navigate To ( Ctrl+Comma) feature provides search-as-you-type support for code file.
  • Quick Launch

 

More shortcuts:

http://visualstudioshortcuts.com/2015/

Deal with result in callback functions of multiple AJAX-Call

Sometimes, it requires to appear the result after all of the deferred tasks have completed in AJAX-Call. The code can be implemented as follows with jQuery:

var deferreds = [], resultArry = [];

$.each(inputArry, function(index, input){ 

deferreds.push(ajaxFunction(input, functionSuccess(result){

console.log("Each Ajax-Call done!");

resultArry.push(result); //Each result saved in the array.

}));

$.when.apply(null, deferreds).done(function(){

console.log("All Ajax-Call Done:" + resultArry.length);

});

}

Importance is to use Function.apply.

https://msdn.microsoft.com/de-de/library/4zc42wh1(v=vs.94).aspx

Edit PDF File with Adobe Acrobat Reader DC using Out-Of-Box Behavior of SharePoint 2013

It is convenient to edit a PDF in SharePoint 2013. The following steps are not to edit PDF file in the browser directly by configuring Office Web Apps. It is the Out-of-Box behavior in SharePoint 2013 and will be configured with following steps.

  • Add items in “\Web Server Extensions\15\Template\XML\DOCICON.xml”:

<Mapping Key=”pdf” Value=”icpdf.gif” OpenControl=”AdobeAcrobat.OpenDocuments”/>

  • In CA, set “Browser File Handling” to “Permissive”konfiguration.
  • Execute the following PowerShell code:
    $webApplication = Get-SPWebApplication “http://webapplication/
    $webApplication.AllowedInlineDownloadedMimeTypes.Add(“application/pdf”)
    $webApplication.Update()

Now, the “Edit Document” in SharePoint 2013  is enabled and PDF file can be edited as follows:

E1

Open and Checkout with  Adobe Acrobat Reader DC:

E2

After editing, Checkin and add comment, just like editing a word document with desktop application.

E4

E5

There are more details to control PDF file behavior in SharePoint in the article of the following link:

http://stevemannspath.blogspot.de/2013/04/sharepoint-2013-pdf-support-and.html