0
如果我製作自定義母版頁,並將其放入標準母版頁所在的文件系統中,該頁面是否爲幻影?SharePoint Ghost與無主機和自定義母版頁
如果我製作自定義母版頁,並將其放入標準母版頁所在的文件系統中,該頁面是否爲幻影?SharePoint Ghost與無主機和自定義母版頁
你應該要想在庫列表來創建一個列表項使用GhostableInLibrary。
<Module Name="MyMasterPages" Url="_catalogs/masterpage" Path="MasterPages" RootWebOnly="TRUE">
<File Url="MyMaster.master" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" />
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/MyMaster.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/MyMaster.png" />
<Property Name="MasterPageDescription" Value="Provides the header, footer, and navigation used by my website" />
</File>
</Module>
我不確定標準母版頁的含義。在文件系統上的自定義母版頁不應該在全局或LAYOUTS目錄,而是一個自定義功能的內部。作爲一個例子,看看在PublishingLayouts功能(注意,需要MOSS),看看它是如何規定的母版頁。