更改 Sharepoint 列表视图的源

发布于 2024-11-17 18:37:47 字数 447 浏览 3 评论 0原文

实际上,我希望将现有列表视图 Web 部件中查看的文档库从“文档库#1”更改为“文档库#2”。我想这样做,而不必重新创建整个 Web 部件(例如设置和视图),因为我必须多次执行此操作。

Sharepoint 版本是 2007,Sharepoint Designer 不可用。

上下文:我目前正在构建一个 Sharepoint 区域,该区域将由多个 ASPX 页面组成,所有页面均基于原始布局。此布局包括直接查看文档库的列表视图 Web 部件。

每个 ASPX 页面都有一个属于它的文档库(例如 Page1.aspx 和 DocLib1),我希望在此列表视图 Web 部件中显示它们。

Page1.aspx 设置得很好(实际上是原始的)。将 Page2.aspx 设置为第一个的直接副本时,我无法将列表视图从 DocLib1 更改为 DocLib2,因为似乎没有选项可以这样做。

Effectively I am looking to change the viewed Document Library within an exsisting List View Web Part from 'Document Library #1' to Document Library #2'. I want to do so without having to re-create the entire web part (e.g. settings & views) as I would have to do this multiple times.

Sharepoint version is 2007 and Sharepoint Designer is not avaliable.

Context: I am currently building a Sharepoint area which will consist of multiple ASPX pages all based off an original layout. This layout includes a List View web part that directly views a Document Library.

Each ASPX page has a Document Library attributed to it (e.g. Page1.aspx and DocLib1), which I wish to display within this List View web part.

Page1.aspx was setup just fine (effectively the original). When setting up Page2.aspx as a direct copy of the first, I am unable to change the List View from DocLib1 to DocLib2 as there seems no option to do so.

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

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

发布评论

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

评论(1

清风不识月 2024-11-24 18:37:47

列表视图 Web 部件不易自定义,除非您可以编辑 Web 部件的 xml 并更改一些指南。如果您希望能够通过浏览器更改源列表,则需要使用不同的 Web 部件 - 内容查询 Web 部件是一个开箱即用的选项,但显然这与标准列表视图有很大不同。

您还可以使用列表模板执行某些操作 - 如果您可以使用自定义模板而不是标准文档库模板,则可以更改 AllItems.aspx 来执行您需要的操作。

The list view web part isn't easily customizable unless you can edit the xml for the web part and change some guids. If you want to be able to change the source list through the browser you will need to use a different web part - the content query web part is an out of box option, though obviously that is quite different from the standard list view.

You may also be able to do something with with list templates - if you can use a custom template instead of the standard document library template, you may be able to alter AllItems.aspx to do what you need.

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