Tuesday, November 8, 2016

Office 365 - SharePoint Online Developer References

Mini Calendar:
Override Style of existing calendar WP
http://www.bornsolutions.com/mini-calendar-webpart-in-sharepoint-online/

Multi Language in Custom components:
Javascript resource files
MMS-TermSet
http://www.vrdmn.com/2015/11/custom-multilingual-text-using.html

Image Slider:
JSSlide.js
http://en.share-gate.com/blog/image-slider-with-sharepoint-2013-search-results

PNP Samples:
https://github.com/OfficeDev/PnP/tree/master/Samples

ListView to Accordian
JSLink Concept
https://code.msdn.microsoft.com/office/Client-side-rendering-code-ccdb2a0e
https://blog.vgrem.com/2013/04/14/customize-the-rendering-of-a-list-view-in-sharepoint-2013-displaying-list-items-in-accordion/
JQuery Accordian,JSOM
http://aaclage.blogspot.co.uk/2013/08/example-how-to-use-accordion-jquery.html

Power BI External user Sharing:
https://powerbi.microsoft.com/en-us/blog/power-bi-february-service-update/#externalSharing

App Deployment:
https://support.office.com/en-gb/article/Use-the-App-Catalog-to-make-custom-business-apps-available-for-your-SharePoint-Online-environment-0b6ab336-8b83-423f-a06b-bcc52861cba0?ui=en-US&rs=en-GB&ad=GB

CRM online to SharePoint integration
http://dynamicscrmpros.com/benefits-integrating-sharepoint-microsoft-dynamics-crm/

Flow - CRM online to SharePoint integration
http://dynamicscrmcoe.com/dynamics-crm-online-and-sharepoint-online-codeless-integration/

SharePoint Online Bing Map:
https://alberthoitingh.wordpress.com/2014/04/04/connect-bing-maps-to-sharepoint-online/

SPO 2017 SkillSet:
https://dev.office.com/sharepoint/docs/spfx/tools-and-libraries
http://www.slideshare.net/kushanlahiru/sharepoint-framework-the-future-of-sharepoint-office-365-developer-ecosystem-64107055
https://beyond-sharepoint.github.io/

Angular VS React VS Ember:
https://smashingboxes.com/blog/choosing-a-front-end-framework-angular-ember-react/

SPO External User Signup Options:
http://sharepointmaven.com/setup-external-users-sharepoint/

SPO Folder metadata:
http://www.nothingbutsharepoint.com/2011/08/24/automatic-tagging-based-from-a-folder-how-to-get-your-users-to-eat-their-vegetables-without-them-knowing-it-aspx/
http://techtrainingnotes.blogspot.co.uk/2007/08/sharepoint-how-to-create-links-from.html

Azure Storage Costs:
http://www.aidanfinn.com/?p=19076
https://docs.microsoft.com/en-us/azure/storage/storage-introduction

JSLink:
http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html

Custom Search API Query in Display template
https://www.eliostruyf.com/creatingresult-block-shows-office-graph-suggestionspart-1/






Monday, October 10, 2016

Sharepoint Add an app - Storefront javascript listtemplate modification

Description:
To display only ListTemplate that contains 'CG_', which can be customised as per your need. This script was added into masterpage using ScriptLink customactions javascript embed. 

Note:
The $2b_3 and $M_3 collection variables tend to change based on MS updates. You have to find the right one using browser devtools in your 'add an app page' to check the OOTB Storefront collection's and get the right ones.

Code:
//Function to hide OOTB apps in 'AddAnApp' page
function CGRefreshUI() {
            var listedApps = SP.Storefront.StorefrontApp.get_currentView();  
             //remove  Noteworthy
            listedApps.$2b_3.length = 0;
              //remove all except List templates starting with 'CG_'
                  for (var i = listedApps.$M_3.length-1; i--;) {
               if (listedApps.$M_3[i].$2R_0.Title.indexOf("CG_") < 0 ) {
                  listedApps.$M_3.splice(i, 1);
               }
            }
            SP.Storefront.StorefrontApp.get_currentView().updateUI();
}

//Function check if SP.Storefront js is loaded and call core method
function CGAlterStorefront() {
        if (SP.Storefront != undefined) {                       
var listedApps = SP.Storefront.StorefrontApp.get_currentView();
if (listedApps == undefined || listedApps.$2b_3 == null || listedApps.$M_3 == null) { setTimeout(CGAlterStorefront, 300); return; }
listedApps.spProxy.add_getAppsCompleted(CGRefreshUI);
CGRefreshUI();
        }
    }


//Call Alter 'Add an Apps/StoreFront' function
   _spBodyOnLoadFunctionNames.push("CGAlterStorefront");


Reference:
https://spmatt.wordpress.com/2014/05/21/hiding-the-out-of-the-box-document-library-in-sharepoint-2013/