如何创建单独的母版页并为子站点发布它而不更改sp2013中的母版页

时间:2016-11-27 03:27:02

标签: sharepoint sharepoint-2013

我需要帮助为子网站的母版页创建母版页。 不干扰主站点。 并且还需要帮助才能发布它。

<!DOCTYPE HTML>
<html>
    <!-- This template was included in a design course that was written, designed, developed, and recorded by Chris Converse -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta id="view" name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" />
    <title>Creating A Responsive Web Design</title>
    <link rel="stylesheet" type="text/css" href="css/screen_style.css" />
    <link rel="stylesheet" type="text/css" href="css/screen_layout_large.css" />
    <link rel="stylesheet" type="text/css" media="only screen and (min-width:50px) and (max-width:500px)"   href="css/screen_layout_small.css">
    <link rel="stylesheet" type="text/css" media="only screen and (min-width:501px) and (max-width:800px)"  href="css/screen_layout_medium.css">
    <!--[if lt IE 9]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>
<body>

    <div class="page">
        <header>
            <a class="logo" href="#"></a>
        </header>

        <article>
            <h1>Heading</h1>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <a href="#">Duis aute irure</a> dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
        </article>

        <div class="promo_container">

            <div class="promo one">
                <div class="content">
                    <h3>Promo Heading Here</h3>
                    <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
                    <p><a class="cta" href="">Visit our blog</a></p>
                </div>
            </div>

            <div class="promo two">
                <div class="content">
                    <h3>Promo Heading Here</h3>
                    <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit est laborum.</p>
                    <p><a class="cta" href="">Read the article</a></p>
                </div>
            </div>

            <div class="promo three">
                <div class="content">
                    <h3>Promo Heading Here</h3>
                    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor inci did unt.</p>
                    <p><a class="cta" href="">Learn more</a></p>
                </div>
            </div>

            <div class="clear-fix"></div>
        </div>
        <nav>
            <a href="#">About Us</a>
            <a href="#">Services</a>
            <a href="#">Portfolio</a>
            <a href="#">Contact Us</a>
        </nav>
        <footer>
            &copy; Your Organization Name
        </footer>
    </div>

</body>
</html>

这是一个样本。我正在尝试添加类似的代码。

1 个答案:

答案 0 :(得分:-1)

  1. 转到网站设置 - &gt;母版页和页面布局(/ _catalogs / masterpages /)。

    选择母版页(如oslo.aspx) - &gt;打开菜单并选择下载副本

  2. 编辑页面并重命名
  3. 将新页面上传到母版库(如第1步) 转到顶部功能区'fiels'并单击“checkIn”并单击“发布”
  4. 转到子站点中的站点设置 - &gt;母版页 检查无线电:'指定一个母版页......' 从列表中选择新的母版页 并检查:'重启所有子网站......' 点击确定