0
votes

I am currently working on a SharePoint 2016 system. We are upgrading from a SharePoint 2010 where we had one master page. Our goal is to have a single master page for every site in our environment. We can't use publishing to do this since we need site templates. So that route is out.

If possible I am looking for a way to catch, perhaps via a feature, when the masterpage is loading and redirect it to use custom master page. I haven't been able to find an event that I can use to do this.

Note: This is an onsite installation and not office 365.

Any help would be much appreciated.

1
Are you migrating existing sites from SP2010 to, or are you going to make new sites in SP2016?Joren Vandamme
We are migrating existing sites from SP2010 to SP2016.Ben

1 Answers

0
votes

After a long while we finally settled on a solution. We created two features. One for the site collection and one for SharePoint Central Administration.

The site collection feature forces all children sites to update their master page to a specific one. It also adds event listeners for new sites so that they also point to the correct master page.

The web app feature is used as a "switch". When it gets enabled it activates the site collection feature. When it gets disabled then it deactivates the site collection feature.

It's not a super great solution. However I thought I might post it here for those that are unable to move away from SharePoint (like us).