我想知道如何在sharepoint 2007中创建一个没有母版页的页面。 TKS!
答案 0 :(得分:3)
请创建不继承母版页的页面布局,然后从该页面布局创建页面。这仅适用于启用了发布功能的MOSS 2007。
示例页面布局代码如下:
<%@ Page language="C#" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>
<%@ Register TagPrefix="PublishingVariations" TagName="VariationsLabelMenu" src="~/_controltemplates/VariationsLabelMenu.ascx" %>
<%@ Register Tagprefix="PublishingConsole" TagName="Console" src="~/_controltemplates/PublishingConsole.ascx" %>
<%@ Register TagPrefix="PublishingSiteAction" TagName="SiteActionMenu" src="~/_controltemplates/PublishingActionMenu.ascx" %>
<head>
<meta name="ProgId" content="SharePoint.WebPartPage.Document">
<meta name="WebPartPageExpansion" content="full">
<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css"/>
<SharePoint:ScriptLink name="init.js" runat="server"/>
</head>
<form id="form1" runat="server">
<div style="float=right; height=10px;">
<!-- Site Actions-->
<PublishingSiteAction:SiteActionMenu runat="server"/>
</div>
<div>
<!-- Page Editing Toolbar -->
<wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server"/>
<PublishingConsole:Console runat="server"/>
</div>
<div>
<WebPartPages:SPWebPartManager runat="server" id="WebPartManager">
</WebPartPages:SPWebPartManager>
<WebPartPages:WebPartZone id="g_6CCC1E01CED54C21AB5D59878B886105" runat="server" title="Zone 1">
</WebPartPages:WebPartZone>
</div>
</form>
答案 1 :(得分:1)
在SPD中打开网站,右键单击“文件夹列表”窗格中的根,然后选择“新建”,然后选择“ASPX”。将创建不包含母版页的SharePoint中的新aspx页面。在此页面中,我们可以执行SharePoint支持的任何操作。