使用 Web 部件复制 Web 部件页面(aspx 页面)

发布于 2024-09-15 03:39:14 字数 173 浏览 6 评论 0原文

我在文档库“DobLib1”中有一个 Web 部件页面“DocLib1.aspx”,并且它的 Web 部件很少。

如何获取相同的 Web 部件页面并将其复制到其他文档库(大约有 50 多个文档库)。 Web 部件页面以文档库命名(扩展名为 aspx)。其中一个 Web 部件是该 Web 部件所在的同一文档库的列表。

I have a web part page "DocLib1.aspx" in document library "DobLib1" and it has few webparts.

How can I take the same web part page and copy it to other document libraries (there are about 50+ document libraries). The web part page is named after the document library (with aspx extension). One of the web part is the list for the same doc lib where the web part is residing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

栖迟 2024-09-22 03:39:14

这对我的 SharePoint 2010 有用:

  1. SharePoint Designer 2010 中打开网站,
  2. 右键单击页面并选择复制。
  3. 选择不同的文件夹
  4. 重命名页面
  5. 将其移回原始文件夹。

所有 WebPart 都将完好无损。
这可能看起来很简单,但在 SharePoint 中复制页面不会复制页面上的任何 WebPart。这让我发疯。希望这对您有帮助。

This worked for me for SharePoint 2010:

  1. Open the site in SharePoint Designer 2010
  2. Right click the page and select copy.
  3. Select a different folder
  4. Rename the page
  5. Move it back to the original folder.

All the WebParts will be intact.
This might seem elementary, but within SharePoint copying a page doesn't copy any of the WebPart on the page. That drove me bonkers. Hope this helps you.

手心的海 2024-09-22 03:39:14

有两个选项可用于复制和粘贴 Sharepoint 2010 页面并保留其 Web 部件:

  1. 通过 Sharepoint Designer 2010 执行复制和粘贴。

  2. 访问任何内容Sharepoint 浏览器中的页面并转到“站点操作”>管理内容和结构。可以从此处进行复制和粘贴,但在同一目录中进行复制和粘贴可能会失败;粘贴到不同的目录级别,然后重命名该文件。

There are two options to copy and paste a Sharepoint 2010 page and retain its web parts:

  1. Perform the copy and paste through Sharepoint Designer 2010.

  2. Access any page in Sharepoint Browser and go to Site Actions > Manage Content and Structure. Copy and paste is possible from here but copy and paste within the same directory can fail; paste in a different directory level then rename the file.

奶茶白久 2024-09-22 03:39:14

我在寻找复制 Web 部件页面的解决方案时来到了这个网站,但实际上我找到了一种更简单的方法。我有一个包含 Web 部件页面的库,每当我需要与库中其他页面类似的另一个页面时,我都会转到“库工具”>“功能区中的库,然后使用资源管理器打开。从那里,我只需将与我想要的类似的 Web 部件页面复制/粘贴到同一个库中,然后重命名该页面。然后我可以打开新页面并进行所需的更改。

I came upon this site when also looking for a solution to copying a webpart page, but I actually found an even easier way. I've got a library that holds webpart pages, and whenever I need another page that is similar to one of the others in the library, I go to Library Tools > Library in the ribbon, and then Open with Explorer. From there, I simply Copy/Paste the webpart page that is similar to what I want into the same library and then rename the page. Then I can open the new page and make the needed changes.

近箐 2024-09-22 03:39:14

为了将我的经验添加到 qhawk 的解决方案中(我不能直接在解决方案下添加评论,因为我的代表人数还不到 50 名)- 在 SharePoint Designer 2010 中,我必须转到“站点对象”-->“站点对象”。所有文件 -->然后选择包含您要复制的页面的相关库,将其复制到另一个库,例如共享文档,在那里重命名,然后复制回来,工作就完成了。

我发现如果我只选择站点对象 -->列表和库 -->并从那里选择我的库,它不会列出库中能够复制它们的实际项目,甚至在“视图”或“表单”框中也不会。您必须经过“所有文件”路线。

附言。我知道这是一个旧线程,但我在尝试找到解决方案时发现了这一点,并且在找到 qhawk 的解决方案后需要对我进行一些调整,我想我会让其他人知道,以防其他人偶然发现这一点。

To add my experience to qhawk's solution (I cant just add a comment directly under the solution as I have less than 50 rep) - in SharePoint Designer 2010, I had to go to Site Objects --> All Files --> then select the relevant Library which has the page you want to copy, copy it to another Library, e.g. Shared Documents, rename it there, copy it back, job done.

I found that if I just selected Site Objects --> Lists and Libraries --> and chose my Library from there, it wouldnt list the actual items in the library to be able to copy them, not even in the Views or Forms box. You have to go through the 'All Files' route.

PS. I know this is an old thread, but I found this whilst trying to find the solution for this, and after finding qhawk's solution needed a little tweaking for me, thought I'd let others know incase someone else stumbles across this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文