Return to Jive Software

364 Views 2 Replies Last post: Nov 3, 2009 4:20 PM by Sean Moran RSS
Martin Rowbory Beginner 283 posts since
Sep 4, 2008
Currently Being Moderated

Nov 3, 2009 12:30 PM

Access rss fields from freemarker

How do I access all the fields in an rss feed?

 

In your rss-subscription.ftl you access a few:

 

<#list entries as entry>

 

${entry.titleEx}

${entry.publishedDate}

FeedUtils.getEntryTitle(entry.titleEx)

 

These paramters don't match the rss feed though... So how do I access other custom fields such as <clearspace:objectType>

 

It looks like the feed is returned as a java.util.List  can't work out how to access random elements though. Should be simple?

 

In the rss: (this is an sbs search result rss)

<item>
      <title>When will the OLED display become prevalent as LCD does in the present market?</title>
      <link>http://localhost:8080/community/message/1078#1078</link>
      <description>&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Is there anyone who is a professional in OLED? How is it going now? What are the obstacles that prevent OLED from entering the ordinary lives?&lt;/p&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 26 Nov 2008 01:14:18 GMT</pubDate>
      <author>gluo</author>
      <guid>http://localhost:8080/community/message/1078#1078</guid>
      <dc:date>2008-11-26T01:14:18Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>2</clearspace:objectType>
    </item>
Sean Moran Jive Employee 6,395 posts since
Dec 10, 2007
Currently Being Moderated
Nov 3, 2009 4:20 PM in response to: Martin Rowbory
Re: Access rss fields from freemarker

Hi Martin,

 

We're using Sun's syndication package which contains ROME, among other libraries. Their documentation is available here: https://rome.dev.java.net/apidocs/1_0/overview-summary.html

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.