[英]How to display a specific folder from a document set on another page - SharePoint
I have created a new page in my SharePoint site and I would like it to display a specific folder within a document library that already exists on another page in my site. 我在SharePoint网站中创建了一个新页面,我希望它显示文档库中特定文件夹,该文档文件夹已经在我网站的另一页面上存在。 Is that possible?
那可能吗? If so, how would I go about doing that?
如果是这样,我将如何去做?
Your help or suggestions would be much appreciated! 您的帮助或建议将不胜感激!
Thanks, 谢谢,
-ianw -ianw
It sounds like you found an answer, but for those looking for a solution, modifying the view doesn't allow you to specify a folder, just a document library view. 听起来好像找到了答案,但是对于那些寻求解决方案的人来说,修改视图不允许您指定文件夹,而只能指定文档库视图。 The only true way I've found is to open the page in Sharepoint Designer and modify the actual code of the document web part placed on that page.
我找到的唯一真实的方法是在Sharepoint Designer中打开页面并修改放置在该页面上的文档Web部件的实际代码。
You'll find the document web part, look for the query line, and add/modify it to include this: 您将找到文档Web部件,查找查询行,然后添加/修改它以包括以下内容:
<where>
<contains>
<FieldRef Name="FileDir" />
<Value Type="Lookup">[Name of Folder]</Value>
</contains>
</where>
Make sure to replace [Name of Folder] with the name of the directory within your document library for your site that you want to point towards. 确保将[文件夹名称]替换为您要指向的站点的文档库中目录的名称。 Also, make sure to change the View of the web part to look for files, not folders.
另外,请确保更改Web部件的视图以查找文件,而不是文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.