Question

I have created a Custom Master Page in VS2010 and deploy Project to SharePoint. First I activated site Collection feature "SharePoint Server Publishing Infrastructure" and then i also activated site feature "SharePoint Server Publishing". After that Under "Look and Feel" category, I click Master page. But in site Master page settings, only site master page v4.master was available but my custom Master page was not listed there.

Can anybody explain why it is not listed there ? Whats missing ??

Was it helpful?

Solution

This elements file works for newcustom.master, it needs to be a web feature and then published from the master page catalogue. You will need publishing infrastructure at the minimum to activate it also.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="MasterPage" Url="_catalogs/masterpage">
    <File Url="newcustom.master" Type="GhostableInLibrary" Path="MasterPage\newcustom.master">
      <Property Name="MasterPageDescription" Value="This is the master page to use for the new site." />
      <Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" />
      <Property Name="UIVersion" Value="4" />
    </File>
  </Module>
</Elements>

Tested in SandBox and SharePoint Online.

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