更新.dwp(导出)Web部件? [英] Update .dwp (exported) web parts?

查看:59
本文介绍了更新.dwp(导出)Web部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

如果我创建内容编辑器Web部件(或脚本编辑器),则将其添加到图库中,并且人们已经将其添加到其页面中....我是否有办法向这些Web部件推送更新?我是 不是是指带有组件的WSP可部署Web部件.

If I create a content editor web part (or script editor), add it to the gallery and people have added it to their pages....is there any way for me to push out updates to those web parts? I'm not referring to WSP deployable web parts w/ an assembly.

只是编辑器Web部件,然后导出并作为Web部件导入到图库中?我假设这需要某种资源密集的powershell脚本来查找和替换所有内容?

Just an editor web part, exported then imported as a web part to the gallery? I'm assuming this requires some sort of resource intense powershell script to find and replace everything?

我遇到的问题是,我们使用了Web部件并引用了javascript文件.该文件不再存在于原始位置(我们的CDN网址已更改),现在我们需要更新页面上已经存在的Web部件.

Problem I'm having is we used a web part with a reference to a javascript file. The file no longer exists at the original location (our cdn urls changed), and now we need to update web parts already on the pages.

谢谢您的建议.

推荐答案

例如,请使用PowerShell脚本更新内容编辑器Web部件内容链接,如下所示(jquery.js):

Please use PowerShell script to update the Content Editor Web Part Content Link like below (jquery.js) for example:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
 
#Get the Site collection


site = Get-SPSite"http://sp/sites/devtest" #循环访问网站集中的每个子网站 foreach(
site=Get-SPSite "http://sp/sites/devtest" #Loop throgh each subsite in the site collection foreach(


网络连接


这篇关于更新.dwp(导出)Web部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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