Question

I am about to create a new customized master page that will be used on a portal based on the "my site" template. I am wondering what the best way would be to provision the master page.

Edit: We are using SharePoint 2013 on-premise, and our requirement is to have complete custom master pages.

Should I use the old school way with using features, or should I use some other technique?

Was it helpful?

Solution

To provision the master page, you can use the old school method of applying the master page on the root site and all sub sites using the feature activation event. Also, don't forget to add an event receiver to apply the master page for newly created sites. This can be triggered on a web provisioning event.

Beware that you will have to re-engineer the whole approach or solution while you go cloud.

If you want to be cloud proof, you will have to plan for remote event receivers and deployment of files using add-ins. There is a microsoft solution pack on how this can be done which gives you good insight.

You can think about your approach based on the situation.

Hope this helps :)

OTHER TIPS

If you are working with SharePoint 2013/Online then you can easily add a HTML master page using Design Manager/ SharePoint Designer and SP will generate the relevant .master file based on your design.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top