【问题标题】:Sharepoint 2007 page without master page没有母版页的 Sharepoint 2007 页面
【发布时间】:2011-09-26 06:54:15
【问题描述】:

我想知道如何在 sharepoint 2007 中创建一个没有母版页的页面。 tks!

【问题讨论】:

  • 你的意思是没有“网站”?
  • 嗯...不...我的意思是一个没有母版页的页面...就像...没有侧边栏,没有全局导航栏...什么都没有...我不知道还有什么描述它...一个没有母版页的页面...
  • 你能修改网页的来源吗?
  • 是的,我可以...但如果可能的话,我正在寻找另一种解决方案...因为这将适用于最终用户...而且他们不能被信任...
  • 您到底想达到什么目的?不是技术上的。您要实施什么业务流程?

标签: sharepoint-2007


【解决方案1】:

请创建一个继承母版页的页面布局,然后从该页面布局创建一个页面。这仅适用于启用了发布功能的 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>

【讨论】:

    【解决方案2】:

    在 SPD 中打开站点,右键单击“文件夹列表”窗格中的根并选择“新建”,然后选择“ASPX”。在 SharePoint 中创建没有母版页的新 aspx 页面。在此页面中,我们可以执行 SharePoint 支持的任何操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-07
      • 2012-05-06
      • 2011-05-17
      相关资源
      最近更新 更多