Sharepoint MasterPage页里的31个ContentPlaceHolder占位符[通俗易懂]

Sharepoint MasterPage页里的31个ContentPlaceHolder占位符[通俗易懂]自定义SharepointMasterPage页,共有31个ContentPlaceHolder占位符,一个也不能少因为在应用到网站或网页时,网站或网页要向MasterPage页里对应的ContentPlaceHolder里填入内容,若有的ContentPlaceHolder不需要则可以把它隐藏掉而不要将其删除。<%@Masterlanguage=”C#”%…

大家好,又见面了,我是你们的朋友全栈君。

        
自定义
Sharepoint MasterPage
页,共有
31

ContentPlaceHolder
占位符,一个也不能少因为在应用到网站或网页时,网站或网页要向
MasterPage
页里对应的
ContentPlaceHolder
里填入内容,若有的
ContentPlaceHolder
不需要则可以把它隐藏掉而不要将其删除。

<%@Master language=”C#”%>

<%@ Register Tagprefix=”SharePoint” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %> <%@ Register Tagprefix=”Utilities” Namespace=”Microsoft.SharePoint.Utilities” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %> <%@ Import Namespace=”Microsoft.SharePoint” %>

<%@ Import Namespace=”Microsoft.SharePoint.ApplicationPages” %>

<%@ Register Tagprefix=”WebPartPages” Namespace=”Microsoft.SharePoint.WebPartPages” Assembly=”Microsoft.SharePoint, 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” %>

<HTML dir=”<%$Resources:wss,multipages_direction_dir_value%>” runat=”server” xmlns:o=”urn:schemas-microsoft-com:office:office” __expr-val-dir=”ltr”>

<HEAD runat=”server”>

<META Name=”GENERATOR” Content=”Microsoft SharePoint”>

<META Name=”progid” Content=”SharePoint.WebPartPage.Document”>

<META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=utf-8″>

<META HTTP-EQUIV=”Expires” content=”0″>

<SharePoint:RobotsMetaTag runat=”server”/>

<Title ID=onetidTitle><asp:ContentPlaceHolder id=PlaceHolderPageTitle runat=”server”/></Title>

<SharePoint:CssLink runat=”server”/>

<SharePoint:Theme runat=”server”/>

<SharePoint:ScriptLink language=”javascript” name=”core.js” Defer=”true” runat=”server”/>

<SharePoint:CustomJSUrl runat=”server”/>

<SharePoint:SoapDiscoveryLink runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderAdditionalPageHead” runat=”server”/>

<SharePoint:DelegateControl runat=”server” ControlId=”AdditionalPageHead” AllowMultipleControls=”true”/>

<style type=”text/css”>

.style1 {

margin-right: 0px;

}

</style>

</HEAD>

<BODY scroll=”yes” οnlοad=”javascript:if (typeof(_spBodyOnLoadWrapper) != ‘undefined’) _spBodyOnLoadWrapper();”>

  <form runat=”server” οnsubmit=”return _spFormOnSubmitWrapper();”>

<WebPartPages:SPWebPartManager id=”m” runat=”Server”/>

 

<!– 全局站点导航及站点地图 –>

<asp:ContentPlaceHolder id=”PlaceHolderGlobalNavigation” runat=”server”>

<asp:ContentPlaceHolder id=”PlaceHolderGlobalNavigationSiteMap” runat=”server”> </asp:ContentPlaceHolder>

          </asp:ContentPlaceHolder>

 

            <!– 搜索框 –>

      <asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”>

  </asp:ContentPlaceHolder>

 

  <!– 站点名称 –>

  <asp:ContentPlaceHolder id=”PlaceHolderSiteName” runat=”server”>

  </asp:ContentPlaceHolder>

 

  <!– 顶级水平导航菜单条 –>

  <asp:ContentPlaceHolder id=”PlaceHolderTopNavBar” runat=”server”>

<!– 顶级水平导航菜单 –>

<asp:ContentPlaceHolder id=”PlaceHolderHorizontalNav” runat=”server”></asp:ContentPlaceHolder>

</asp:ContentPlaceHolder>

 

<!– 设计控制 –>

<asp:ContentPlaceHolder ID=”WSSDesignConsole” runat=”server”>

<wssuc:DesignModeConsole id=”IdDesignModeConsole” runat=”server”/>

</asp:ContentPlaceHolder>

<asp:ContentPlaceHolder ID=”SPNavigation” runat=”server”>

<SharePoint:DelegateControl runat=”server” ControlId=”PublishingConsole”

   PrefixHtml=”&lt;tr&gt;&lt;td colspan=&quot;4&quot; id=&quot;mpdmconsole&quot; class=&quot;ms-consolemptablerow&quot;&gt;”

   SuffixHtml=”&lt;/td&gt;&lt;/tr&gt;”>

</SharePoint:DelegateControl>

</asp:ContentPlaceHolder>

 

<!– 站点标题左侧的空格 –>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleLeftBorder” runat=”server”></asp:ContentPlaceHolder>

 

 <!– 站点导航条 –>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server”>

         

         <!– 设置当前网站的导航 –>

<asp:SiteMapPath SiteMapProvider=”SPContentMapProvider” id=”ContentMap” SkipLinkText=”” NodeStyle-CssClass=”ms-sitemapdirectional” runat=”server”/>

 

<!– 设置当前站点的导航

<asp:SiteMapPath SiteMapProvider=”SPSiteMapProvider” id=”ContentMap” SkipLinkText=”” NodeStyle-CssClass=”ms-sitemapdirectional” runat=”server”/>

–>

 </asp:ContentPlaceHolder>

 

 <asp:ContentPlaceHolder id=”PlaceHolderPageTitleInTitleArea” runat=”server” />

 

 <asp:ContentPlaceHolder id=”PlaceHolderMiniConsole” runat=”server”/>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleRightMargin” runat=”server”></asp:ContentPlaceHolder>

 

 <asp:ContentPlaceHolder id=”PlaceHolderTitleAreaSeparator” runat=”server”/>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarDataSource” runat=”server” />

  <asp:ContentPlaceHolder id=”PlaceHolderCalendarNavigator” runat=”server” />

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarTop” runat=”server”/>

  <!– 左侧导航栏 –>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBar” runat=”server”>

  </asp:ContentPlaceHolder>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftActions” runat=”server”></asp:ContentPlaceHolder>

  <asp:ContentPlaceHolder id=”PlaceHolderNavSpacer” runat=”server”></asp:ContentPlaceHolder>

       <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarBorder” runat=”server”></asp:ContentPlaceHolder>

          <asp:ContentPlaceHolder id=”PlaceHolderBodyLeftBorder” runat=”server”></asp:ContentPlaceHolder>

       

                 <!– 这个要添加,因为若不加这标签则Webpart的编辑工具栏则会显示在网页的下面,从而使整个网站的结构乱掉 –>

        <PlaceHolder id=”MSO_ContentDiv” runat=”server”>

<!– 网页描述信息 –>

        <asp:ContentPlaceHolder id=”PlaceHolderPageDescription” runat=”server”/>

       

        <!– 站点内容的主要内容信息 –>

   <asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server”>

   </asp:ContentPlaceHolder>

</PlaceHolder>

 

<asp:ContentPlaceHolder id=”PlaceHolderBodyRightMargin” runat=”server”></asp:ContentPlaceHolder>

 

  <asp:ContentPlaceHolder id=”PlaceHolderFormDigest” runat=”server”>

<SharePoint:FormDigest runat=server/>

  </asp:ContentPlaceHolder>

   <input type=”text” name=”__spDummyText1″ style=”display:none;” size=1/>

   <input type=”text” name=”__spDummyText2″ style=”display:none;” size=1/>

  </form>

  <asp:ContentPlaceHolder id=”PlaceHolderUtilityContent” runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderBodyAreaClass” runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderTitleAreaClass” runat=”server”/>

</BODY>

</HTML>

转载于:https://www.cnblogs.com/netcai/archive/2009/09/16/1567385.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/159859.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

  • 通过阿里云服务器部署flask项目详细步骤,从服务器选择开始

    通过阿里云服务器部署flask项目详细步骤,从服务器选择开始通过阿里云服务器部署flask项目详细步骤,从服务器选择开始1.购买服务器,我们目前选择镜像Ubuntu16.0464位的系统,因为这个系统目前运行比较稳定2.设施远程链接密码3.添加安全组4.利用ssh链接服务器5.先更新apt相关源6.mysql安装7.redis安装8.安装虚拟环境9.配置.bashrc修改.bashrc文件输入命令,打开.bashrc文件添加以下三行代码使.bashr…

  • sqlserver 动态sql执行execute和sp_executesql

    sqlserver 动态sql执行execute和sp_executesqlsqlserver动态sql的执行,有两个方法execute和sp_executesql.其中第一个方法execute可以简写为exec.execute方法适合执行没有返回值的动态sql,sp_executesql可以获取到动态sql的返回值.二者比较起来,前者写起来简单,后者功能强大些,但写起来麻烦,使用的时候具体情况具体分析吧.  在function中不能使用exec和sp_exec

  • 齿轮常见故障与特征频率及其谐波、边频带

    齿轮常见故障与特征频率及其谐波、边频带

    2021年11月22日
  • uint16与int16的区别_golang int转string

    uint16与int16的区别_golang int转stringGolang中uint、int,int8,int16,int32,int64区别在第一次学习go语言时,对go语言的各种int类型充满疑惑,为什么会有int、int8、int16等等的类型呢?为什么不像java一样,只个int类型呢?直接上demotest.gopackagemainimport(“fmt””unsafe”)fun…

  • 保姆级教程,Linux静态IP设置的技巧

    保姆级教程,Linux静态IP设置的技巧介绍如何使用VMware虚拟机Linux系统的Ubuntu16.04发行版进行静态IP设置。设置固定IP非常重要,可以避免因IP的改变,而导致原本搭建的环境失效等情况的出现。

  • pycharm怎么配置django环境_pycharm环境搭建

    pycharm怎么配置django环境_pycharm环境搭建用Pycharm安装配置Django框架1.打开Pycharm—–左下角—-Terminal命令行 pipinstalldjango#默认下载最新版本django框架 pipinstalldjango==1.11.8#可以下载自己所需的指定版本 pipshowdjangoversion#查看自己当前的django框架版本可能下载的途中会出现如下错…

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号