Sharepoint 内容类型可以基于文档架构吗
我正在尝试使用单个文档库来存储和显示基于少数不同架构的多个 Xml 文档。每个架构都有一个与其关联的 InfoPath 表单。
我是否可以将相同的文件类型 (.xml) 与多个内容类型相关联,因为这将需要 Sharepoint 检查文件的内容以确定匹配的架构?
I am attempting to use a single Document Library to store and display multiple Xml documents based on a handful of different schemas. Each schema will have an InfoPath form associated with it.
Can I associate the same file type (.xml) with multiple Content Types, given this will require Sharepoint to inspect the content of the file to determine the matching schema?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
内容类型与共享点中的文件类型无关。此外,Sharepoint 无法根据文件内容检测内容类型。但是,它可以使用文档属性来设置元数据,包括内容类型。不幸的是 xml 文档没有这些,所以唯一的方法是实现自定义功能。
Content type is not related from file type in sharepoint. Also sharepoint can't detect content type based on the file content. However it can use document properties to set metadata including content type. Unfortunately xml document doesn't have those so the only way is to implement custom Feature.