Removing column name from SharePoint RSS feed

…衆ロ難τιáo~ 提交于 2019-12-13 04:21:27

问题


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>

回答1:


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.




回答2:


Read the source you're pointing to, it tells you that the column title is displayed if you reference several columns in your RSS settings. If you only reference one column, the column name should not be displayed.

As you are using jQuery AJAX, you could parse the RSS content after you retrieve it, and remove the column names. Your other option is to change your RSS settings to have only one column displayed.



来源:https://stackoverflow.com/questions/9232690/removing-column-name-from-sharepoint-rss-feed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!