上传到 SharePoint 时解析 HTML 元标记
SharePoint 可以“开箱即用”地解析自定义文档属性,并将其与 MS Office 文档的 SharePoint 属性同步。
我需要配置 MOSS 2007 来解析 HTML 元标记,并以与将 HTML 文档上传到库时类似的方式将它们同步到自定义 SharePoint 属性。
以下格式的元标记
<meta name="foo" content="bar" >
我是 SharePoint 新手,不确定这是否是一个简单的配置,或者是否需要开发一些自定义代码。
以前有人做过这个(或类似的事情)吗?
SharePoint parses and synchronizes custom document properties with SharePoint properties for MS Office documents "out of the box".
I need to configure MOSS 2007 to parse HTML meta tags and synchronize them to custom SharePoint properties in a similar fashion when HTML documents are uploaded to a library.
Meta tags in the following format
<meta name="foo" content="bar" >
I'm new to SharePoint and not sure if it is a simple configuration or if some custom code needs to be developed.
Has anyone done this (or something similar) before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要创建一个 EventHandler检查元数据并使它们对 Sharepoint 有意义。
创建并安装它后,每次将文件上传到文档库时,您的代码都会控制并处理该元数据。
You'll need to create an EventHandler to check that metadata and make them meaningful for Sharepoint.
After create and install it, everytime you upload a file to your document library, your code takes control and handle that metadata.
我更喜欢鲁本斯的答案,但还有另一种选择...上传允许自定义属性的 Ms Word 文档。这些自定义属性以您所描述的方式从所述文档中升级...从那里使用 SharePoint 的“文档转换”功能从 Word 转换为 HTML
Ruben 的方法再一次更现实一点!
I like Rubens' answer better but there's another option... upload a Ms Word document which alows for custom properties. These custom properties are promoted from said document in the fashion you described... from there use SharePoint's "Document Conversion" functionality to convert from Word to HTML
Once again Ruben's method is a little more realistic!