カスタムマスターページはサイトマスターページの設定では利用できません

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/53958

質問

私はVS2010にカスタムマスターページを作成し、プロジェクトをSharePointに展開しました。最初にリサイトコレクション機能 "SharePoint Server Publishing Infrasisure"をアクティブにしてから、サイトの機能 "SharePoint Server Publishing"も有効化されました。その後、「外観」カテゴリの下で、マスターページをクリックします。しかし、サイトマスターページの設定では、サイトマスターページv4.masterのみが利用可能でしたが、カスタムマスターページはそこにリストされていませんでした。

誰かがそれがそこにリストされていない理由を説明することができますか?何が足りない??

役に立ちましたか?

解決

この要素ファイルはNewCustom.Masterで動作し、それはWeb機能である必要があり、マスターページカタログから公開される必要があります。それを有効にするには、最低限の公開インフラストラクチャを公開する必要があります。

<?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>
.

Sandbox SharePoint Onlineでテストされました。

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top