从 SharePoint RSS 源中删除列名称 [英] Removing column name from SharePoint RSS feed
问题描述
我有一个 SharePoint 2007 站点,它向静态 HTML 页面公开 RSS 源.静态页面将通过 jQuery AJAX 聚合并显示它们.问题是 SharePoint 这不是一件非常快速和容易的事情,但它可以做到.它涉及创建您自己的 XSL 样式表(或复制默认样式表并修改它)并更新 SharePoint web.config 以使用它.
I have a SharePoint 2007 site the exposes RSS feeds to a static HTML page. The static page will aggregate and display them via jQuery AJAX. The problem is that SharePoint includes the name and value of the columns in the body of the feed (go to link and search for body
) which makes my page look like this:
Note the Body: after the date and before the description. I don't want that there column names in the feed. How do I tell SharePoint to exclude the column names? Here is a section of the feed. You can See Body is included in the feed item description.
<item>
<title>Sample Post #3</title>
<link>http://example.com/ViewPost.aspx?ID=4</link>
<description><![CDATA[<div><b>Body:</b> <div class=ExternalClass2325D3CC73DB4C30BE5AB60A06E681F9><div>
<div id=lipsum>
<p>Lorem ipsum dolor sit amet... </p>
</div></div></div></div>
<div><b>Category:</b> Category 1</div>
<div><b>Published:</b> 12/29/2011 9:11 PM</div>
]]></description>
<!--extraneous elements deleted for brevity -->
</item>
According to this source it's not a very quick and easy thing to do but it can be done. It involves creating your own XSL style sheet (or copying the default one and modifying it) and updating the SharePoint web.config to use it.
这篇关于从 SharePoint RSS 源中删除列名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!