Sharepoint 2010 在远程 SPSite 的 Web 部件上显示 SPList
我是共享点新手,我试图从同一个农场上的另一个 SPSite 获取 SPList,这本身不是问题。
问题是,似乎没有当列表不在我当前的 SPS 站点上时工作... 除了 ListViewWebPart 之外还有其他选择来显示来自不同 SPSite 的 SPlistItems 吗?
Im new to sharepoint and im trying to get a SPList from another SPSite i have on same farm, that itself is not a problem.
But i want to do something like this: http://prazjain.wordpress.com/2009/11/13/programmatically-add-splist-as-webpart-on-spweb-using-listviewwebpart/
problem is, it doesnt seem to work when the list is not on my current SPSite...
Is there an alternative besides ListViewWebPart to show the SPlistItems from a different SPSite?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SharePoint 不支持 OOTB 跨网站集列表显示。有 SharePoint Designer、Web 服务、iframe 等的解决方法。但在我看来,这些都是 hack。
我建议编写一个自定义 Web 部件并在 SPGridView。
Cross site-collection list display is not supported OOTB by SharePoint. There are workarounds with SharePoint Designer, web services, iframes, etc. But these are all hacks in my opinion.
I suggest to write a custom web part and display the data in a SPGridView.