没有母版页的Sharepoint页面

Ped*_*ino 5 sharepoint layout master-pages

我需要创建一个没有母版页的发布页面,我已经尝试使用自定义布局,并重写PublishPageLayout但是我遇到了意外错误.我可以分配的唯一母版页是seattle.master,甚至不是oslo.master,也不是minimal.master或自定义母版页,所以它就像我什么都做不了.(我已经注册组件中的安全在web.config文件中),我可以创建MSD一个空白页面,但我不知道如何编辑它,我的意思是,使用一些Web部件和工作人员.

如果你不理解我写的东西,我很抱歉,英语不是我的母语.

希望可以有人帮帮我

再见

小智 8

SharePoint母版页总是必须包含西雅图或奥斯陆大师可用的内容占位符,如果您创建没有它们的母版,您将失去共享点功能,或者在最糟糕的情况下,您将获得空白页面说出错误.

我建议你保留所有的内容持有者,如果你想使用它们,请使用css隐藏它.

以下是您可以执行的操作示例

<div style="display:none">
            <asp:ContentPlaceHolder ID="TitleZone" runat="server" Visible="false"></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="SliderZone" runat="server" Visible="false"></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="ActionTitleZone" runat="server" Visible="false"></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderPageImage" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderTitleLeftBorder" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderMiniConsole" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderTitleRightMargin" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderTitleAreaSeparator" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderNavSpacer" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarBorder" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderBodyLeftBorder" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderBodyRightMargin" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderTitleAreaClass" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="WSSDesignConsole" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server" Visible="false" ></asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server" Visible="false" ></asp:ContentPlaceHolder>
</div>
Run Code Online (Sandbox Code Playgroud)