How to change the main page for a specific page in sharepoint

How can I apply a different master page for two pages on a SharePoint site?

+3
source share
2 answers

Create a new homepage, say custom2.master.

Then go to the page whose main page you want to change. Find the directive <% @ Page%>:

<%@ Page language="C#" MasterPageFile="_catalogs/masterpage/<<custom2.master>>" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" %><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Update your virtual URL in the tag above in the attribute MasterPageFile

+6
source

, - , . , - SharePoint: - Controls - .

+1

Source: https://habr.com/ru/post/1773260/


All Articles