SharePoint 2013 - 将文档库Web部件从子站点显示到父站点 [英] SharePoint 2013 - Show document library web part from subsite to parent site

查看:83
本文介绍了SharePoint 2013 - 将文档库Web部件从子站点显示到父站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在子网站中有一个文档库。



我想在父站点中显示此库的OOTB Web部分。为了达到这个目的,我使用了以下链接中给出的解决方案:



向父站点或
子站点显示SharePoint Online列表



哪个在团队网站集中工作正常。但是,当我在项目网站集中使用相同的解决方案时,在打开库Web部件中的文件夹时会出现以下错误:


抱歉,出了点问题。




有谁知道如何解决这个错误?或者如何从子网站向父网站显示文档库Web部件?

解决方案


我们可以使用Page Viewer web部件来实现它。


页面网址如下:

 https:// xxx / sites / dennis / subsite / Shared%20Documents / Forms / AllItems.aspx?isdlg = 1 

如果您不想显示功能区,我们可以创建一个新列表视图页面并使用下面的CSS隐藏功能区,然后使用父网站中页面查看器Web部件中列表视图的URL。

< style> 
#s4-ribbonrow {
display:none!important;
}
< / style>

有关页面查看器Web部件的更多信息供您参考。


https://support.office.com/en-us/article/display-a-web-page-folder-or-file-on-a-classic-sharepoint-page-7f61feec-9b3d -4805-a960-07636ba59527


最好的问候,


Dennis



I have one document library in subsite.

I want to show the OOTB web part of this library in parent site. To achieve this I have used the solution given in below link:

Displaying SharePoint Online lists to parent or sub-sites

Which is working fine in team site collection. However when I am using the same solution in projects site collection, it is throwing below error while opening the folders in library web part:

Sorry, something went wrong.

Does anyone know how to solve this error? or how to show the document library web part from subsite to parent site?

解决方案

Hi,

We can use Page Viewer web part to achieve it.

The page url like this:

https://xxx/sites/dennis/subsite/Shared%20Documents/Forms/AllItems.aspx?isdlg=1

If you don't want to show the ribbon, we can create a new list view page and hide the ribbon using CSS below, then using the URL of the list view in Page Viewer web part in the parent site.

<style>
#s4-ribbonrow{
	display:none !important;
}
</style>

More information about the Page Viewer web part for your reference.

https://support.office.com/en-us/article/display-a-web-page-folder-or-file-on-a-classic-sharepoint-page-7f61feec-9b3d-4805-a960-07636ba59527

Best Regards,

Dennis


这篇关于SharePoint 2013 - 将文档库Web部件从子站点显示到父站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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