Adhering to best practices, we have built a SharePoint 2013 intranet with multiple Host Named Site Collections all accessible via HTTPs, for example
https://home.domain.com - Landing Page
We have noticed issues with the home page on each site having an affect on the Meta Data Navigation Menu so thought it was time we reviewed our references.
Ok, we want to have a common master page and CSS, JavaScript, Fonts etc throughout the intranet. So what is the best way of implementing this and what is a candidate provisioning strategy say from Dev
My thoughts are copy a common custom master page to each Master Page Gallery but with options as to how we reference external files
Option 1: replicate on each of the HNSCs:
Local copies of CSS, JS etc in • /siteAssets/ and or, • /Style Library/syles.css Or
Option 2: explicit reference to the styles held on the home site collection
The master page might have common reference to https://home.domain.com/SiteAssets/css/styles.css
Or Option 3: use the _layouts file structure - not my favourite as not accessible in SPD 2013 or using sp2013 built in document management
Use the hive and not the content database structure. Hence, all master pages would have references similar to: • _layouts/15/styles/mystyles.css • _layouts/15/images/client/home.jpg