Category: Code

  • Angular 2: Quick Start Notes Part #1

    These are my notes, made while watching Deborah Kurta’s Angular2: Getting Started course, hosted by Pluralsight. Most, if not all, of this information can be found within Deborah’s course, however by stripping this information out I hope to jog memories… Tools & Setup: Macintosh (OS X) How to use Visual Studio Code with GitHub: Download and […]

  • Cheat Sheet: Fixing SharePoint Page Layouts containing Webpart with the same ID

    I had problems upgrading a WSP containing one or more Page Layouts? Unable to edit or update a Page Layout? Related article: Editing SharePoint Webparts embedded within Page Layouts https://www.sjlewis.com/2015/10/15/editing-sharepoint-webparts-embedded-within-page-layouts/ Navigate to the site settings of the root website (within a site collection) Click Master pages and page layouts and locate the Page Layouts Make a […]

  • Empty GUID: 00000000-0000-0000-0000-000000000000

    Empty GUID: 00000000-0000-0000-0000-000000000000 C# new Guid() Creates an empty GUID that is all-zeros Guid.NewGuid() Creates a new GUID using an algorithm that is designed to make collisions extremely unlikely

  • Example: Office 365 Video REST API & Script Editor webpart

    Here is an example of how to embedding a video using a Script Editor webpart and the Office 365 Video Portal REST API within SharePoint Publishing site. When try this example yourself, don’t forget to edit the VideoPlayer.webpart and replace the blank GUIDs. Quick Start: Upload a video to your Office 365 Video Portal Add […]

  • Jasmine with Visual Studio and SharePoint Apps – Part 3

    In this post I want to talk about Fixtures and a major pitfall I’ve found when working with Chutzpah Test Adaptor for the Test Explorer.

  • Jasmine with Visual Studio and SharePoint Apps – Part 2

    Jasmine with Visual Studio and SharePoint Apps – Part 2

    Last week I wrote about how to configure Jasmine to run within Visual Studio using Chutzpah Test Adaptors. However since then I’ve run into a number of issues for which I will share my thoughts in this post.

  • Jasmine with Visual Studio and SharePoint Apps – Part 1

    Jasmine with Visual Studio and SharePoint Apps – Part 1

    This blog does no​t describe how to perform JavaScript ​TDD (test-driven development) or BDD (behaviour-driven development). It does however describe how to set-​​up Visual Studio and configure an App for SharePoint project to get you started.

  • Client-side Development Techniques with CQWP(s) and JavaScript…

    The other day I was talking to one of my colleague John Holah about retrieving large amounts of data from a SharePoint 2010 Lists using “client-side” v “OOB” techniques for a particular client, who has set use a number of challenges/limitations: Our access is limited to Site Collections We cannot deploy server-side code Internet Explorer […]

  • Useful UI Branding tools for SharePoint 2013

    Just thinking about branding my website and came across a tool by Microsoft called Color Palette Tool SharePoint 2013 which downloaded from http://social.technet.microsoft.com/wiki/contents/articles/16806.color-palette-tool-sharepoint-2013.aspx And if you require inspiration for your theme one of colleges (Matthew Holden) pointed me in the direction Adobe Kuler https://kuler.adobe.com/create/color-wheel/  

  • SharePoint Online Public Site: adding JS & CSS references to a Master page

    I’m not going to describe the process of creating a custom master page from end to end, as there are plenty of good articles and blogs out there already. I just want to share one possible pitfall that I fell into… As any owner of a website might, I decided to create a new master […]