Web模板启动页面布局 [英] Web template starting page layout

查看:64
本文介绍了Web模板启动页面布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在Webtemplate中为default.aspx设置pagelayout时出现问题。


有人可以告诉我怎样才能实现这个目标?



这是来自webtemplate.xml的剪辑:


...< / Lists>

  < Pages>

  &NBSP; < Page Path =" default.aspx">

  &NBSP; &NBSP; &NBSP; < WebParts>

  &NBSP; &NBSP; &NBSP; &NBSP; < WebPart File =" contactwp.dwp" Zone =" WebPartZoneRight">

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; <属性>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < Property Name =" Title"> Owner< / Property>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < / Properties>

  &NBSP; &NBSP; &NBSP; &NBSP; < / WebPart> ...



如何为< Page>设置自定义pagelayout?





Antti Astikainen

解决方案

嗨Antti ,


您可以创建一个自定义功能,在网页模板中设置default.aspx的页面布局,如下所示:

< ; WebFeatures> 
<! - SharePoint Server Publishing - >
< Feature ID =" 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb" />

<! - SharePoint Server Publishing - >
< Feature ID =" 22A9EF51-737B-4ff2-9346-694633FE4416">
< Properties xmlns =" http://schemas.microsoft.com/sharepoint/">
< Property Key =" ChromeMasterUrl"值= QUOT;" />
< Property Key =" WelcomePageUrl"值= QUOT;

资源:osrvcore,List_Pages_UrlName; /default.aspx" />
< Property Key =" PagesListUrl"值= QUOT;" />
< Property Key =" AvailableWebTemplates"值= QUOT;" />
< Property Key =" AvailablePageLayouts"值= QUOT;〜SiteCollection / _catalogs /母版/ MyLayout.aspx:〜SiteCollection / _catalogs /母版/ SomeOtherLayout.aspx" />
< Property Key =" SimplePublishing"值= QUOT;真" />
< Property Key =" DefaultPageLayout"值= QUOT;〜SiteCollection / _catalogs /母版/ MyLayout.aspx" />
< / Properties>
< / Feature>
...

< / WebFeature>

参考:


如何更改2013年共享点默认页面的页面布局


谢谢


最佳此致


Hi,

I have problem setting pagelayout for my default.aspx in Webtemplate.

Could someone tell how can I achieve this?

Here's a clip from webtemplate.xml:

...</Lists>
  <Pages>
    <Page Path="default.aspx">
        <WebParts>
          <WebPart File="contactwp.dwp" Zone="WebPartZoneRight">
            <Properties>
              <Property Name="Title">Owner</Property>
            </Properties>
          </WebPart>...

How do I set my custom pagelayout for <Page>?


Antti Astikainen

解决方案

Hi Antti,

You could create a custom feature to set page layout for default.aspx in the web template like this:

<WebFeatures>
        <!-- SharePoint Server Publishing -->
        <Feature ID="94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb"/>

        <!-- SharePoint Server Publishing -->
       <Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
          <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
            <Property Key="ChromeMasterUrl" Value=""/>
            <Property Key="WelcomePageUrl" Value="


Resources:osrvcore,List_Pages_UrlName;/default.aspx"/> <Property Key="PagesListUrl" Value=""/> <Property Key="AvailableWebTemplates" Value=""/> <Property Key="AvailablePageLayouts" Value="~SiteCollection/_catalogs/masterpage/MyLayout.aspx:~SiteCollection/_catalogs/masterpage/SomeOtherLayout.aspx"/> <Property Key="SimplePublishing" Value="true" /> <Property Key="DefaultPageLayout" Value="~SiteCollection/_catalogs/masterpage/MyLayout.aspx"/> </Properties> </Feature> ... </WebFeature>

Reference:

How to change the page layout of the default page in share point 2013

Thanks

Best Regards


这篇关于Web模板启动页面布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆