如何才能最好地创建仅显示根文件夹内容的SharePoint列表视图?

时间:2022-12-31 00:27:21

I have a custom SharePoint list definition that is based on the Document content type. My library instance that I create from this contains many HTML documents, and each of those documents has some images saved into a subfolder inside this library. What's the best way to create a view that will show all of those top-level HTML documents without showing all of the image accessory files? I'd prefer to define this within the schema.xml file for my list definition.

我有一个基于文档内容类型的自定义SharePoint列表定义。我从中创建的库实例包含许多HTML文档,并且每个文档都将一些图像保存到此库中的子文件夹中。什么是创建视图的最佳方法,该视图将显示所有这些*HTML文档而不显示所有图像附件文件?我更喜欢在schema.xml文件中为我的列表定义定义它。

1 个解决方案

#1


1  

I believe adding Scope="FilesOnly" to the View tag in your list definition should do the trick.

我相信将Scope =“FilesOnly”添加到列表定义中的View标签应该可以解决问题。

#1


1  

I believe adding Scope="FilesOnly" to the View tag in your list definition should do the trick.

我相信将Scope =“FilesOnly”添加到列表定义中的View标签应该可以解决问题。