在 SharePoint 2010 列表定义中隐藏视图的文件夹结构
SharePoint 2010 中的“编辑视图”页面上有一个设置,允许您显示列表中的所有项目,而忽略文件夹结构。该设置位于“文件夹”>“文件夹或平面>显示不带文件夹的所有项目。我的问题是:
有没有办法通过在 Visual Studio 2010 中创建的 XML 列表定义来启用此设置?
有没有办法查看现有列表的 XML 视图定义,以便我可以挖掘出适当的 XML 标签/属性?这些存储在 SharePoint 中的什么位置?
There's a setting on the "Edit View" page in SharePoint 2010 that allows you to show all items in a list, ignoring folder structure. The setting is under Folders > Folders or Flat > Show all items without folders. My question is:
Is there any way to enable this setting via an XML list definition created in Visual Studio 2010?
Is there any way to view the XML view defintion for an existing list so that I can dig out the appropriate XML tags/attributes? Where are these stored in SharePoint?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道具体设置 - 但将文档库另存为模板(根据需要使用平面视图) - 将其下载到本地并将其重命名为 .cab 文件 - 您可以在文件中看到 XML 标记包含。您应该能够轻松地在所包含的 XML 中找到视图的标记。
当我的 schema.xml 的行为与我想要的不完全一样时,我经常使用这个技巧。
编辑:我很快就做到了这一点并获得了平面视图的标记。我认为您正在寻找的属性是 Scope="Recursive"。
祝你好运,
谢恩
Don't know the setting off by heart - but save the Document Library as a template (with the flat view as you require it) - download it locally and rename it to a .cab file - you can see the XML markup in the file contained. You should be able to easily find the markup for the view in the contained XML.
I've used this trick regularly when my schema.xml doesn't behave exactly as I want.
EDIT: I quickly did this and got the markup for a flat view. I think the attribute you're looking for is Scope="Recursive".
Best of luck,
Shane