Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SharePoint>;自定义页面库&;页面布局_Sharepoint_Moss_Shared Libraries_Sharepoint 2007 - Fatal编程技术网

SharePoint>;自定义页面库&;页面布局

SharePoint>;自定义页面库&;页面布局,sharepoint,moss,shared-libraries,sharepoint-2007,Sharepoint,Moss,Shared Libraries,Sharepoint 2007,我有一个自定义页面库,其中自定义内容类型和页面布局都位于站点定义内 一切正常。我唯一无法回避的是,如果我通过stsadm使用页面库、ctype、页面布局升级解决方案,除了页面布局之外,所有内容都会更新 ctype-->中的新字段没有问题 更改了页面库中的视图-->没有问题 更新的页面布局-->错误 页面布局部分: <!-- specific page-layout to display LKW data --> <File Url="CustomPage.aspx" T

我有一个自定义页面库,其中自定义内容类型和页面布局都位于站点定义内

一切正常。我唯一无法回避的是,如果我通过stsadm使用页面库、ctype、页面布局升级解决方案,除了页面布局之外,所有内容都会更新

ctype-->中的新字段没有问题 更改了页面库中的视图-->没有问题

更新的页面布局-->错误

页面布局部分:

<!-- specific page-layout to display LKW data -->
    <File Url="CustomPage.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >
      <Property Name="Title" Value="$Resources:CustomLayouts,Title;" />
      <Property Name="MasterPageDescription"
                Value="$Resources:cmscore,PageLayout_BlankWebPartPage_Description;" />
      <Property Name="ContentType"
                Value="$Resources:cmscore,contenttype_pagelayout_name;" />
      <Property Name="PublishingPreviewImage"
                Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/BlankWebPartPage.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/BlankWebPartPage.png" />
      <Property Name="PublishingAssociatedContentType"
                Value=";#$Resources:FieldsCTypes,cTypeDisplayName;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900D38AAFB8072F441984BC947D49503947;#" />
    </File>
执行代码后,页面布局将升级并使用新的页面布局

问题是,这对我来说不是真正的解决方案,因为我有大约1000个使用site def的网站集。和页面布局。
更新所有这些都是相当痛苦的。有人知道这个问题的解决办法吗?

我想谈谈一件事。看起来IgnoreIfAlreadyExists=“TRUE”工作不正常。请参阅此,将值还原为FALSE可能会有所帮助

<File Url="CustomPage.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >

我想谈谈一件事。看起来IgnoreIfAlreadyExists=“TRUE”工作不正常。请参阅此,将值还原为FALSE可能会有所帮助

<File Url="CustomPage.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >


Nope-不幸的是,该标志对我的情况没有帮助。在解决方案升级或卸载/安装解决方案后,页面布局仍然没有更新。许多消息来源称IgnoreIfAlreadyExists无法按预期工作,“仅”解决方案是使用一些自定义代码,所以我上面的FeatureReceiver解决方案看起来毕竟是一种解决方案。在解决方案升级或卸载/安装解决方案后,页面布局仍然没有更新。许多消息来源称IgnoreIfAlreadyExists无法按预期工作,“唯一”的解决方案是使用一些自定义代码-因此,我的功能接收器解决方案从上看起来毕竟是一种解决方案。目前我的“解决方案”是在功能激活时执行上述代码的功能接收器。目前没有最终的解决方案,只有一个解决方案。目前我的“解决方案”是一个功能接收器在激活功能时执行上面的代码。没有最终的解决方案,但目前需要解决。
<File Url="CustomPage.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >