Sharepoint 2013 Provisioning App部分不适用于页面传播

时间:2014-08-19 21:34:04

标签: sharepoint provisioning propagation

我一直在使用Sharepoint 2013,我需要一个多语言网站(英语和法语)。我在我的默认布局中设置应用程序部件时遇到问题。这是我的布局的elements.xml:

<File Path="MyLayoutFolder\MyLayout.aspx" Url="MyLayoutFolder/MyLayout.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
      <Property Name="Title" Value="MyLayout"/>
      <Property Name="Description" Value="MyLayout Description"/>
      <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"/>
      <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLeft.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLeft.png"/>
      <Property Name="PublishingAssociatedContentType" Value=";#CNPage;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900523C43D792F54F6FBC9E0AD0F7CCFDAF;#"/>
      <AllUsersWebPart WebPartZoneID="ContentZoneID" WebPartOrder="1">
        <![CDATA[
          <webParts>
            <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
              <metaData>
                <type name="Microsoft.SharePoint.WebPartPages.ClientWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
              </metaData>
              <data>
                <properties>
                  <property name="TitleIconImageUrl" type="string" />
                  <property name="HelpMode" type="helpmode">Navigate</property>
                  <property name="Direction" type="direction">NotSet</property>
                  <property name="ExportMode" type="exportmode">None</property>
                  <property name="HelpUrl" type="string" />
                  <property name="Hidden" type="bool">False</property>
                  <property name="Description" type="string">My App Part Description</property>
                  <property name="FeatureId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">c6df9bdd-1ed9-42fa-9589-de2b480596b9</property>
                  <property name="CatalogIconImageUrl" type="string" />
                  <property name="Title" type="string">This is the title</property>
                  <property name="AllowHide" type="bool">True</property>
                  <property name="ProductWebId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">d624e943-f118-4c9e-9168-92566f483452</property>
                  <property name="AllowZoneChange" type="bool">True</property>
                  <property name="ChromeType" type="chrometype">None</property>
                  <property name="AllowConnect" type="bool">True</property>
                  <property name="Width" type="unit" />
                  <property name="Height" type="unit" />
                  <property name="WebPartName" type="string">WebPartName</property>
                  <property name="TitleUrl" type="string" />
                  <property name="AllowEdit" type="bool">True</property>
                  <property name="AllowMinimize" type="bool">True</property>
                  <property name="ProductId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">c6df9bdd-1ed9-42fa-9589-de2b480596b8</property>
                  <property name="AllowClose" type="bool">True</property>
                  <property name="ChromeState" type="chromestate">Normal</property>
                </properties>
              </data>
            </webPart>
          </webParts>
        ]]>
      </AllUsersWebPart></file>

有几点需要注意。 ProductID属性与我的应用程序的产品ID匹配。 WebPartName与我的应用程序部件的名称匹配。 FeatureId是productid + 1。

当我用英语创建页面时,我的应用程序部分会自动创建。如果我切换到法语并创建页面,我的应用程序部分也会自动创建。但是,如果我的法语页面是由“变体传播页面作业定义”计时器作业自动创建的,则不会使用法语创建应用程序部分。

其他人有这个问题吗?

0 个答案:

没有答案