当我们使用DesignPackage.Install方法时,它会清空组合外观上的条目 [英] When we use the DesignPackage.Install method,it is emptying the entries on the composed look

查看:54
本文介绍了当我们使用DesignPackage.Install方法时,它会清空组合外观上的条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在尝试将自定义网站模板上传并激活到网站集的解决方案库中。当我们使用DesignPackage.Install方法时,它正在激活网站集上的解决方案,但是它会从根网站清空组合外观
上的条目。我该如何解决这个问题?
$

解决方案

< span style ="color:#1F497D">


你的是什么农场建设版?我在我当地的农场进行了测试,但没有复制。


这是样本测试脚本。

 Add-Type -Path" C:\Program Files \Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" 
Add-Type -Path" C:\Program Files \Common Files \ microsrosoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path" C:\Program Files \Common Files \ microsrosoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Publishing.dll"

#Utility函数验证CSOM并返回客户端上下文
函数Authenticate-CSOM(


siteUrl,


< BLOCKQUOTE> adminUsername,

We are trying to upload and activate a custom site template to the solution gallery of a site collection. When we use the DesignPackage.Install method, it is activating the solution on the site collection, but it is emptying the entries on the composed look from the root site. How can I solve this issue?

解决方案

Hi,

What’s your farm build version? I tested in my local farm while not reproduced.

Here is sample test script.

Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Publishing.dll"

#Utility function to authenticate CSOM and return the Client Context
Function Authenticate-CSOM(


siteUrl,


adminUsername,


这篇关于当我们使用DesignPackage.Install方法时,它会清空组合外观上的条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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