I am working on SharePoint 2013 pilot project and I need to integrate customized HTML into Master page for this (publishing site). SharePoint 2013 Preview comes up with new feature called “Design Manager” (This feature available only for publishing site).
In SharePoint 2010 we have an option to create a customized master page using SharePoint Designer 2010 (in most cases). Design Manager allows us to create a Master Page in SharePoint 2013 from an existing HTML page which has associated graphics, scripts, CSS files, Java Scripts, JQuery etc. In previous versions it required an ASP.NET developer to create dynamic pages, but Design Manager Feature allows designers to create dynamic pages. We can integrate HTML using SharePoint Designer 2013 as well.
I have created a HTML which looks like below image (which I am going to convert into Master Page)
Design/Plan your Master Page
Generally, Master page in any technology represents elements which remains same from page to page and associated with master styles, scripts, fonts, images etc. Same concept applies for SharePoint master pages as well.
The content in the below part of the page is what will governed dynamically by SharePoint using a combination of Page Layouts and dynamic content. I will add few more design areas later on into the same master page.
I have designed my HTML and the folder structure for this looks like :
Now We are ready to create Master Page in SharePoint 2013.
Create a SharePoint 2013 Account
I have used cloud based environment to deploy this Master page because its easy and free for the moment. You can download and install the SharePoint 2013 Preview and work locally as well. You can create an account from here to signup for an account.
Create Publishing Site Collection
Once you are done with your SharePoint 2013 account creation, you are allocated a public facing web site and a collaboration site along with Central Administration area to manage all your site collection and sites. You can use public facing web site as well, but I would recommend to create a separate Publishing Site Collection as Microsoft allows one public facing web site in the current cloud environment.
To create it, go to Admin—SharePoint—Site Collection and click on the New Private Site Collection link.
It will allow you to create a Site Collection using different templates. We will use “Publishing Portal” Template.
Now we have a Publishing Site ready, we can start to customize it with new Master Page. The Default home page will look like this:
How to use Design Manager
You can see two different areas on the default home page. One for Information Architecture and second for Visual Designer. If you click on “Design your site”, this will bring you to SharePoint 2013’s new Design Manager:
Map Master Page Directory
Click on 4. Edit Master Pages and you will see a screen like this:
This directory is the folder containing Master Page and Page Layouts as well as their dependent assets (CSS files, scripts, images, etc.). I have already uploaded the folder structure (you can see css, images, and fonts folder in above screen). You can manage this folder by mapping to network drive in Windows.
Note: Upload all your folders and .HTML page at this location
Creating Master Page from HTML
Go to the Design Manager. Click on 4. Edit Master Pages and then click on Convert an HTML File to a SharePoint master page. You will see your HTML page over there. Select that page and click on “Insert” button. It will insert master page into Design Manager’s Master pages list.
To preview this page, click on the Master Page. At the bottom of the page you will see a Yellow Box that represents the place holder where dynamic content is going to be inserted.
When you insert HTML page into Master Pages list, it would be in Draft version. We need to publish it otherwise it will not be available in Site Master Page Settings drop down. To publish it, go to Site Settings — Master pages and page layouts and then find your HTML file. Hit the Publish button on the ribbon.
To assign master page, go to Site Settings –> Master Page (under Look and Feel) and select your master page from the drop down list. Your site will now adopt your new look and feel.
My page looks like this after publishing it on SharePoint 2013.