Forum: Radiant CMS Experimental RSS code

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Pawel S. (Guest)
on 2006-06-02 02:00
(Received via mailing list)
Hi all,

I've been playing with tags and so far, have come up with some very
basic (and incomplete) code to display an RSS feed using the
feed_tools gem:

http://pastebin.com/752259

With that, it's possible to do something like the following:

<r:rss_feed url="http://japundit.com/feed/">
  <h2><r:title /> (<r:items:count /> items)</h2>
  <p><r:description /></p>
  <ul>
  <r:items:each>
    <li><a href="<r:link />"><r:title /></a></li>
  </r:items:each>
  </ul>
</r:rss_feed>

I was able to piece it together by looking at the existing code and
radius quickstart guide, but I'm not sure I've got my head fully
wrapped around the radius tag model yet. Am I on the right track?

There's a section in the radius guide about how to expose certain
methods of an object - doing that would probably be preferable to
defining a separate tag for item, description, date, etc. for the feed
item. I'm not sure how to do it in the context of rss_feed:items:each
though. Can anyone clue me in?

Thanks!

-Pawel
This topic is locked and can not be replied to.